10_Errors Flashcards
If there is no error handler defined then what is used?
Mule default error handler
Can the Mule default error handler be configured?
No
What happens to the flow when the Mule default error handler is used?
The execution of the flow is stopped (and information about the error is logged)
Give an example of 2 properties of the error object?
error.description - a string and error.errorType - an object
How are the error types identified?
Namespace and identifier e.g. HTTP:UNAUTHORIZED
What is the LHS and RHS of the example ‘HTTP:CONNECTIVITY’?
Namespace - LHS and Identifier - RHS
What is the most general error type?
ANY
Do error types follow a hierarchy?
Yes - each error type has a parent
Can the error be handled if it is under critical?
No - cannot be handled
What is the default success response for a HTTP Listener?
- payload
- status code 200
What is the default error response for a HTTP Listener?
- error description
- status code 500
Can you override the response values for a HTTP Listener?
Yes
Where can error handlers be added to?
- an Application (outside of flows)
- a flow
- a selection of one or more event processors
How many event processors can an error scope contain?
Any number of event processors.
What 2 types of error handler scopes are there?
On Error Continue
and On Error Propagate
What happens to the flow after the On Error Propagate/Continue error handler scope has been completed (regarding execution)?
The rest of the flow that threw the error will not be executed.
After the On Error Continue scope has been completed, what happens to the event?
It is passed up to the next level as if the flow execution had been completed successfully. (Key part here - thrown the the NEXT LEVEL, as the execution of the flow that threw the error will not execut)
An HTTP Listener will return what response after the flow throws an error to the On Error Propagate?
error response
An HTTP Listener will return what response after the flow throws an error to the On Error Continue?
successful response
Flow - no error handler. What happens?
Mule default error handler executed. Error response.
Flow - On Error Propagate scope. What happens when an error is thrown in the flow?
On Error Propagate error handler executed. Error thrown.
Flow - On Error Continue scope. What happens when an error is thrown in the flow.
On Error Continue error handler executed. Successful response. Rest of flow not executed.