PHPSpec2\Exception\Example\ErrorException::__construct PHP Method

__construct() public method

Initializes error handler exception.
public __construct ( string $level, string $message, string $file, string $line )
$level string error level
$message string error message
$file string error file
$line string error line
    public function __construct($level, $message, $file, $line)
    {
        parent::__construct(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level, $message, $file, $line));
    }
ErrorException