---
schema_version: "1"
id: fd38f3ed262d9fbef7fda342e9b14c1e070764ade73c45a44f7d32a584613bc9
title: Mule Types (dw::Mule)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-mule-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-mule-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f1d9057b4dacbc929738b186b8870919c389ae5dff277bcad98adc5387d3382d
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# Mule Types (dw::Mule)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Type</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>Error</p></td><td><div><div><p><code>type Error = { description?: String, detailedDescription?: String, errorType?: ErrorType, childErrors?: Array&lt;Error&gt; }</code></p></div></div></td><td><div><div><p>Type that represents an Error and contains the following fields:</p></div><div><ul><li><p><code>description</code>: Concise description of the error.</p></li><li><p><code>detailedDescription</code>: Detailed description of the error. This message can include information specific to a Java exception.</p></li><li><p><code>errorType</code>: Returns the type of the error.</p></li><li><p><code>childErrors</code>: Lists child Errors, if any. For example, the Scatter-Gather router might throw an error aggregating all of its routes errors as children. Not all failing components aggregate errors, so this type can return an empty collection.</p></li></ul></div></div></td></tr><tr><td><p>ErrorType</p></td><td><div><div><p><code>type ErrorType = { identifier?: String, namespace?: String, parentErrorType?: ErrorType | Null }</code></p></div></div></td><td><div><div><p>A type of error that a Mule component can throw.</p></div><div><p>The error type has a <code>identifier</code> string that end users can provide in the Mule configuration.</p></div><div><p>Every error belongs to a <code>namespace</code> to avoid collisions with errors that have the same <code>identifier</code> string but belong to different namespace.</p></div><div><p>Error types can be a specialization of a more general error type, in which case the <code>parentErrorType</code> 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.</p></div></div></td></tr><tr><td><p>Message</p></td><td><div><div><p><code>type Message = Object {class: "org.mule.runtime.api.message.Message"}</code></p></div></div></td><td><div><div><p>Type that represents a Mule message.</p></div></div></td></tr></tbody></table>
