PHP 인터페이스 Webiny\Component\StdLib\Exception\ExceptionInterface

Use it if you want to throw custom exceptions.
파일 보기 프로젝트 열기: Webiny/Framework

공개 메소드들

메소드 설명
__construct ( string | integer $message, null | array $params = null ) Constructor Set the exception message that will be thrown.

메소드 상세

__construct() 공개 메소드

Current line and file will be set as exception origin. Make sure you return: parent::construct($message, $params);
public __construct ( string | integer $message, null | array $params = null )
$message string | integer Message you what to throw. If $message is type of integer, than the method will treat that as an exception code.
$params null | array If message has variables inside, send an array of values using this argument, and the variables will be replaced with those values in the same order they appear.