Phalcon\Error\Error::__construct PHP Method

__construct() public method

Class constructor sets the attributes.
public __construct ( array $options = [] )
$options array
    public function __construct(array $options = [])
    {
        $defaults = ['type' => -1, 'message' => 'No error message', 'file' => '', 'line' => '', 'exception' => null, 'isException' => false, 'isError' => false];
        $options = array_merge($defaults, $options);
        foreach ($options as $option => $value) {
            $this->attributes[$option] = $value;
        }
    }