Elgg  Version 3.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
PluginException Class Reference

PluginException. More...

Inheritance diagram for PluginException:
Elgg\HttpException

Public Member Functions

 __construct (string $message="", int $code=0, Throwable $previous=null)
 {} More...
 
- Public Member Functions inherited from Elgg\HttpException
 setParams (array $params=[])
 Set params to provide context about the exception. More...
 
 getParams ()
 Retrieve exception parameters. More...
 
 getParam ($name)
 Get a parameter value. More...
 
 setRedirectUrl ($url)
 Set preferred redirect URL If set, a redirect response will be issued. More...
 
 getRedirectUrl ()
 Get preferred redirect URL. More...
 

Static Public Member Functions

static factory ($reason, ElggPlugin $plugin=null, $message=null, Throwable $previous=null)
 Create a new plugin exception. More...
 

Protected Attributes

 $plugin
 
- Protected Attributes inherited from Elgg\HttpException
 $params = []
 
 $url
 

Detailed Description

PluginException.

A plugin Exception, thrown when an Exception occurs relating to the plugin mechanism. Subclass for specific plugin Exceptions.

Definition at line 9 of file PluginException.php.

Constructor & Destructor Documentation

PluginException::__construct ( string  $message = "",
int  $code = 0,
Throwable  $previous = null 
)

{}

Definition at line 65 of file PluginException.php.

Member Function Documentation

static PluginException::factory (   $reason,
ElggPlugin  $plugin = null,
  $message = null,
Throwable  $previous = null 
)
static

Create a new plugin exception.

Parameters
string$reasonReason
ElggPlugin$pluginPlugin
string$messageCustom message
Throwable$previousPrevious exception
Returns
self

Definition at line 26 of file PluginException.php.

Member Data Documentation

PluginException::$plugin
protected

Definition at line 14 of file PluginException.php.


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