PHP Class Essence\Http\Exception

Inheritance: extends Exception
Show file Open project: benjamminf/craft-embedded-assets Class Usage Examples

Protected Properties

Property Type Description
$_messages array Thanks to Hinnerk Brügmann (http://www.multiasking.com/2011/05/http-error-codes-as-php-array/).
$_url string Error URL.

Public Methods

Method Description
__construct ( string $url, integer $code, Exception $Previous = null ) Constructs the exception with the given HTTP status code, and the URL that triggered the error.
url ( ) : string Returns the URL that triggered the error.

Method Details

__construct() public method

Constructs the exception with the given HTTP status code, and the URL that triggered the error.
public __construct ( string $url, integer $code, Exception $Previous = null )
$url string URL.
$code integer HTTP status code.
$Previous Exception Previous exception.

url() public method

Returns the URL that triggered the error.
public url ( ) : string
return string URL.

Property Details

$_messages protected property

Thanks to Hinnerk Brügmann (http://www.multiasking.com/2011/05/http-error-codes-as-php-array/).
protected array $_messages
return array

$_url protected property

Error URL.
protected string $_url
return string