PHP Class Imbo\Model\Error

Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\Model\ModelInterface
Exibir arquivo Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
createFromException ( Imbo\Exception $exception, Request $request ) : Error Create an error based on an exception instance
getData ( )
getDate ( ) : DateTime Get the date
getErrorMessage ( ) : string Get the error message
getHttpCode ( ) : integer Get the HTTP code
getImageIdentifier ( ) : string Get the image identifier
getImboErrorCode ( ) : integer Get the imbo error code
setDate ( DateTime $date ) : Error Set the date
setErrorMessage ( string $message ) : Error Set the error message
setHttpCode ( integer $code ) : Error Set the HTTP code
setImageIdentifier ( string $imageIdentifier ) : Error Set the image identifier
setImboErrorCode ( integer $code ) : Error Set the imbo error code

Method Details

createFromException() public static method

Create an error based on an exception instance
public static createFromException ( Imbo\Exception $exception, Request $request ) : Error
$exception Imbo\Exception An Imbo\Exception instance
$request Imbo\Http\Request\Request
return Error

getData() public method

public getData ( )

getDate() public method

Get the date
public getDate ( ) : DateTime
return DateTime

getErrorMessage() public method

Get the error message
public getErrorMessage ( ) : string
return string

getHttpCode() public method

Get the HTTP code
public getHttpCode ( ) : integer
return integer

getImageIdentifier() public method

Get the image identifier
public getImageIdentifier ( ) : string
return string

getImboErrorCode() public method

Get the imbo error code
public getImboErrorCode ( ) : integer
return integer

setDate() public method

Set the date
public setDate ( DateTime $date ) : Error
$date DateTime The DateTime instance to set
return Error

setErrorMessage() public method

Set the error message
public setErrorMessage ( string $message ) : Error
$message string The message to set
return Error

setHttpCode() public method

Set the HTTP code
public setHttpCode ( integer $code ) : Error
$code integer The code to set
return Error

setImageIdentifier() public method

Set the image identifier
public setImageIdentifier ( string $imageIdentifier ) : Error
$imageIdentifier string The image identifier to set
return Error

setImboErrorCode() public method

Set the imbo error code
public setImboErrorCode ( integer $code ) : Error
$code integer The code to set
return Error