ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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, Throwable $previous=null)
 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 27 of file BadgeException.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 34 of file BadgeException.php.

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

35  {
36  parent::__construct('', $code, $previous_exception);
37  $this->badge = $badge;
38 
39  }
__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 46 of file BadgeException.php.

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

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

◆ uploadedBadgeImageFileNotFound()

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

Definition at line 41 of file BadgeException.php.

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

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

Field Documentation

◆ $badge

◆ EXCEPTION_FILE_NOT_FOUND

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

Definition at line 29 of file BadgeException.php.

◆ EXCEPTION_MOVE_UPLOADED_IMAGE_FAILED

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

Definition at line 30 of file BadgeException.php.


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