PHP Class Webiny\Component\StdLib\Exception\AbstractException

Extend this class if you wish do create your own exception class.
Inheritance: extends Exception, use trait Webiny\Component\StdLib\StdObjectTrait, use trait Webiny\Component\StdLib\ValidatorTrait
Show file Open project: Webiny/Framework

Public Methods

Method Description
__construct ( string | integer $message, null | array $params = null ) Create an instance of exception class.

Method Details

__construct() public method

Create an instance of exception class.
public __construct ( string | integer $message, null | array $params = null )
$message string | integer Message you what to throw. If $message is type of integer, than the method will treat that as an exception code.
$params null | array If message has variables inside, send an array of values using this argument, and the variables will be replaced with those values in the same order they appear.