Class PHP7ErrorException

Wraps a PHP 7 Error object inside a normal Exception so it can be handled correctly by the rest of the error handling system

Exception implements Throwable
Extended by Cake\Error\PHP7ErrorException
Namespace: Cake\Error
Location: Error/PHP7ErrorException.php

Properties summary

  • $_error protected
    Error
    The wrapped error object

Inherited Properties

  • code, file, line, message

Method Summary

Method Detail

__construct()source public

__construct( Error $error )

Wraps the passed Error class

Parameters

Error $error
the Error object

Overrides

Exception::__construct()

getError()source public

getError( )

Returns the wrapped error object

Returns

Error

Properties detail

$_errorsource

protected Error

The wrapped error object

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.6/class-Cake.Error.PHP7ErrorException.html