PHP 클래스 Xpressengine\Support\Exceptions\XpressengineException

Xpressengine에서 사용되는 Exception은 모두 이 Exception을 상속받아 사용해야 한다.
저자: XE Developers ([email protected])
상속: extends RuntimeExceptio\RuntimeException
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$args array

공개 메소드들

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

보호된 메소드들

메소드 설명
makeMessage ( ) : string 주어진 argument를 기반으로 message를 완성하여 반환한다.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

string 타입으로 캐스팅될 때, Exception의 message를 출력한다.
사용 중단: 3.0.0-dev5
public __toString ( ) : string
리턴 string

getArgs() 공개 메소드

public getArgs ( ) : array
리턴 array

makeMessage() 보호된 메소드

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

setMessage() 공개 메소드

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

프로퍼티 상세

$args 보호되어 있는 프로퍼티

protected array $args
리턴 array