ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
BadgeException.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ilBadge;
24 use ilException;
25 
27 {
28  public const EXCEPTION_FILE_NOT_FOUND = 1;
30 
31  private ilBadge $badge;
32 
33  public function __construct(int $code, ilBadge $badge, ?ilException $previous_exception = null)
34  {
35  parent::__construct('', $code, $previous_exception);
36  $this->badge = $badge;
37 
38  }
39 
40  public static function uploadedBadgeImageFileNotFound(ilBadge $badge, ?ilException $previous_exception = null): self
41  {
42  return new self(self::EXCEPTION_FILE_NOT_FOUND, $badge, $previous_exception);
43  }
44 
45  public static function moveUploadedBadgeImageFailed(ilBadge $badge, ?ilException $previous_exception = null): self
46  {
47  return new self(self::EXCEPTION_MOVE_UPLOADED_IMAGE_FAILED, $badge, $previous_exception);
48  }
49 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(int $code, ilBadge $badge, ?ilException $previous_exception=null)
static uploadedBadgeImageFileNotFound(ilBadge $badge, ?ilException $previous_exception=null)
static moveUploadedBadgeImageFailed(ilBadge $badge, ?ilException $previous_exception=null)
__construct(Container $dic, ilPlugin $plugin)