Contact Us 1-800-596-4880

Mule Types (dw::Mule)

Type Definition Description

Error

type Error = { description?: String, detailedDescription?: String, errorType?: ErrorType, childErrors?: Array<Error> }

A complex type that represents an Error:

  • description?: String: Concise description of the error.

  • detailedDescription?: String: Detailed description of the error. This message can include information specific to a Java exception.

  • errorType?: ErrorType: Returns the type of the error.

  • childErrors?: Array<Error>: Lists child Errors, if any. For example, the Scatter-Gather router might throw an error aggregating all of its routing errors as children.

Not all failing components aggregate errors, so this type can return an empty collection.

ErrorType

type ErrorType = { identifier?: String, namespace?: String, parentErrorType?: ErrorType }

A type of error that a Mule component can throw.

  • The error type has a identifier string that end users can provide in the Mule configuration.

  • Every error belongs to a namespace to avoid collisions with errors that have the same identifier string but belong to different namespace.

  • Error types can be a specialization of a more general error type, in which case the parentErrorType should return the more general error type. This type is used during error type matching within error handlers. So when selecting the general error type for error handling, it also handles the more specialized error types.

Message

type Message = Object {class: "org.mule.runtime.api.message.Message"}

Type that represents a Mule message.