ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Services\Badge\BadgeException Class Reference
+ Inheritance diagram for ILIAS\Services\Badge\BadgeException:
+ Collaboration diagram for ILIAS\Services\Badge\BadgeException:

Public Member Functions

 __construct (int $code, ilBadge $badge, ?ilException $previous_exception=null)
 
- Public Member Functions inherited from ilException
 __construct ($a_message, $a_code=0)
 A code isn't optional as in build in class Exception. More...
 

Static Public Member Functions

static uploadedBadgeImageFileNotFound (ilBadge $badge, ?ilException $previous_exception=null)
 
static moveUploadedBadgeImageFailed (ilBadge $badge, ?ilException $previous_exception=null)
 

Data Fields

const EXCEPTION_FILE_NOT_FOUND = 1
 
const EXCEPTION_MOVE_UPLOADED_IMAGE_FAILED = 2
 

Private Attributes

ilBadge $badge
 

Detailed Description

Definition at line 26 of file BadgeException.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Services\Badge\BadgeException::__construct ( int  $code,
ilBadge  $badge,
?ilException  $previous_exception = null 
)

Definition at line 33 of file BadgeException.php.

References ILIAS\Services\Badge\BadgeException\$badge, and ILIAS\GlobalScreen\Provider\__construct().

34  {
35  parent::__construct('', $code, $previous_exception);
36  $this->badge = $badge;
37 
38  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ moveUploadedBadgeImageFailed()

static ILIAS\Services\Badge\BadgeException::moveUploadedBadgeImageFailed ( ilBadge  $badge,
?ilException  $previous_exception = null 
)
static

Definition at line 45 of file BadgeException.php.

References ILIAS\Services\Badge\BadgeException\$badge.

45  : self
46  {
47  return new self(self::EXCEPTION_MOVE_UPLOADED_IMAGE_FAILED, $badge, $previous_exception);
48  }

◆ uploadedBadgeImageFileNotFound()

static ILIAS\Services\Badge\BadgeException::uploadedBadgeImageFileNotFound ( ilBadge  $badge,
?ilException  $previous_exception = null 
)
static

Definition at line 40 of file BadgeException.php.

References ILIAS\Services\Badge\BadgeException\$badge.

40  : self
41  {
42  return new self(self::EXCEPTION_FILE_NOT_FOUND, $badge, $previous_exception);
43  }

Field Documentation

◆ $badge

◆ EXCEPTION_FILE_NOT_FOUND

const ILIAS\Services\Badge\BadgeException::EXCEPTION_FILE_NOT_FOUND = 1

Definition at line 28 of file BadgeException.php.

◆ EXCEPTION_MOVE_UPLOADED_IMAGE_FAILED

const ILIAS\Services\Badge\BadgeException::EXCEPTION_MOVE_UPLOADED_IMAGE_FAILED = 2

Definition at line 29 of file BadgeException.php.


The documentation for this class was generated from the following file: