Contact Us 1-800-596-4880

Mule Types (Mule)

DataWeave 2.2 is compatible and bundled with Mule 4.2. This version of Mule reached its End of Life on May 2, 2023, when Extended Support ended.

Deployments of new applications to CloudHub that use this version of Mule are no longer allowed. Only in-place updates to applications are permitted.

MuleSoft recommends that you upgrade to the latest version of Mule 4 that is in Standard Support so that your applications run with the latest fixes and security enhancements.

Type Definition Description


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.


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.


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

Type that represents a Mule message.