PHP Class Xpressengine\Support\Exceptions\XpressengineException

Xpressengine에서 사용되는 Exception은 모두 이 Exception을 상속받아 사용해야 한다.
Author: XE Developers ([email protected])
Inheritance: extends RuntimeExceptio\RuntimeException
Exibir arquivo Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$args array

Public Methods

Method Description
__construct ( array $args = [], integer $code, Exception $previous = null ) 생성자에서는 message 대신 message에서 사용되는 변수 목록을 입력받는다.
__toString ( ) : string string 타입으로 캐스팅될 때, Exception의 message를 출력한다.
getArgs ( ) : array
setMessage ( string $message ) : void 주어진 message를 Exception의 message로 지정한다.

Protected Methods

Method Description
makeMessage ( ) : string 주어진 argument를 기반으로 message를 완성하여 반환한다.

Method Details

__construct() public method

message는 이 클래스를 상속받는 클래스를 정의할 때 $message 필드에 지정해야 한다
public __construct ( array $args = [], integer $code, Exception $previous = null )
$args array message 변환시 사용될 변수 목록
$code integer The Exception code.
$previous Exception The previous exception used for the exception chaining. Since 5.3.0

__toString() public method

string 타입으로 캐스팅될 때, Exception의 message를 출력한다.
Deprecation: 3.0.0-dev5
public __toString ( ) : string
return string

getArgs() public method

public getArgs ( ) : array
return array

makeMessage() protected method

주어진 argument를 기반으로 message를 완성하여 반환한다.
protected makeMessage ( ) : string
return string 완성된 message

setMessage() public method

주어진 message를 Exception의 message로 지정한다.
public setMessage ( string $message ) : void
$message string 지정할 message
return void

Property Details

$args protected_oe property

protected array $args
return array