Bristol SU Support Package
|
Public Member Functions | |
__construct ($message="", $code=0, Throwable $previous=null, $moduleInstance=null) | |
getModuleInstance () | |
Static Public Member Functions | |
static | createWithModuleInstance (ModuleInstance $moduleInstance, string $message='', int $code=0) |
Private Attributes | |
$moduleInstance | |
Fired if the module is inactive
Definition at line 12 of file ModuleInactive.php.
BristolSU\Support\Authorization\Exception\ModuleInactive::__construct | ( | $message = "" , |
|
$code = 0 , |
|||
Throwable | $previous = null , |
||
$moduleInstance = null |
|||
) |
Initialise the exception
string | $message | Message for the exception |
int | $code | Status code |
Throwable | null | $previous | Previous exception |
ModuleInstance | $moduleInstance | ModuleInstance that was accessed |
Definition at line 29 of file ModuleInactive.php.
References BristolSU\Support\Authorization\Exception\ModuleInactive\$moduleInstance.
|
static |
Create the exception with a given moduleInstance
ModuleInstance | $moduleInstance | ModuleInstance that was accessed |
string | $message | Message for the exception |
int | $code | Status code |
Definition at line 44 of file ModuleInactive.php.
References BristolSU\Support\Authorization\Exception\ModuleInactive\$moduleInstance.
BristolSU\Support\Authorization\Exception\ModuleInactive::getModuleInstance | ( | ) |
Get the module instance
Definition at line 54 of file ModuleInactive.php.
References BristolSU\Support\Authorization\Exception\ModuleInactive\$moduleInstance.
|
private |
Definition at line 19 of file ModuleInactive.php.
Referenced by BristolSU\Support\Authorization\Exception\ModuleInactive\__construct(), BristolSU\Support\Authorization\Exception\ModuleInactive\createWithModuleInstance(), and BristolSU\Support\Authorization\Exception\ModuleInactive\getModuleInstance().