An exception handler is passed an exception and must translate that into something that is serializable.

In the case of Amf, it must return an Amfphp_Core_Amf_Packet object containing the relevant information

package Amfphp_Core_Common
author Ariel Sommeria-klein

 Methods

generates an object describing the exception.

handleException(\Exception $exception) : mixed

Parameters

$exception

\Exception

the exception object to analyze

Returns

mixedan object describing the error, that will be serialized and sent back to the client