public fromException ( Exception $e ) : AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | ||
$e | Exception | The exception to create the error instance from |
return | AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface | The error instance |
public function fromException(\Exception $e)
{
return new Error(E_EXCEPTION, $e->__toString(), $e->getFile(), $e->getLine());
}