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

# 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. 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. 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>
