PHP 클래스 Imbo\Model\Error

저자: Christer Edvartsen ([email protected])
상속: implements Imbo\Model\ModelInterface
파일 보기 프로젝트 열기: imbo/imbo 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

createFromException() 공개 정적인 메소드

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
리턴 Error

getData() 공개 메소드

public getData ( )

getDate() 공개 메소드

Get the date
public getDate ( ) : DateTime
리턴 DateTime

getErrorMessage() 공개 메소드

Get the error message
public getErrorMessage ( ) : string
리턴 string

getHttpCode() 공개 메소드

Get the HTTP code
public getHttpCode ( ) : integer
리턴 integer

getImageIdentifier() 공개 메소드

Get the image identifier
public getImageIdentifier ( ) : string
리턴 string

getImboErrorCode() 공개 메소드

Get the imbo error code
public getImboErrorCode ( ) : integer
리턴 integer

setDate() 공개 메소드

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

setErrorMessage() 공개 메소드

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

setHttpCode() 공개 메소드

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

setImageIdentifier() 공개 메소드

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

setImboErrorCode() 공개 메소드

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