clear the current context
return the current context
Handle an error by calling the appropriate error handler. This method will mark the error as handled in order to avoid double handling.
the error to be handled
OptionalerrorContext: ErrorContextan optional context.
error the error for further actions
pop the current context and set the parent as the current.
push a new context and chain it to the current context
the context
ErrorManageris responsible to handle errors by delegating to registered methods which match the error type.