Previous Page
_exception()

Solar_App_Hello
_exceptionDuringFetch()

Next Page
_forward()

_exceptionDuringFetch()

protected string _exceptionDuringFetch ( Exception $e )

When an exception is thrown during the fetch() process, use this method to recover from it.

Inherited from Solar_Controller_Page.

Parameters

  • (Exception) $e: The exception thrown during the fetch() process.

Returns

  • (string) The alternative output from the rescued exception.

Description

When an exception is thrown during the fetch() process, use this method to recover from it.

This default implementation just re-throws the exception, but extended classes may override the behavior to return alternative output from the failed fetch().