public final class ErrorTypeBuilder extends Object
ErrorType. This must be the only mechanism to create an instance of ErrorType.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.ErrorType |
build()
Creates a new instance of the configured error type.
|
static ErrorTypeBuilder |
builder() |
ErrorTypeBuilder |
identifier(String identifier)
Sets the error type identifier.
|
ErrorTypeBuilder |
namespace(String namespace)
Sets the error type namespace.
|
ErrorTypeBuilder |
parentErrorType(org.mule.runtime.api.message.ErrorType parentErrorType)
Sets the parent error type.
|
public static ErrorTypeBuilder builder()
public ErrorTypeBuilder identifier(String identifier)
ErrorType.getIdentifier().
The identifier must be unique within the same namespace.identifier - the string representationthis builderpublic ErrorTypeBuilder namespace(String namespace)
ErrorType.getNamespace()namespace - the error type namespacethis builderpublic ErrorTypeBuilder parentErrorType(org.mule.runtime.api.message.ErrorType parentErrorType)
ErrorType.getParentErrorType()parentErrorType - the parent error typethis builderpublic org.mule.runtime.api.message.ErrorType build()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.