Package org.mule.runtime.ast.api.error
Interface ErrorTypeBuilder
- All Known Implementing Classes:
DefaultErrorTypeBuilder
@NoImplement
public interface ErrorTypeBuilder
Builder for
ErrorType.- Since:
- 1.4
-
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.message.ErrorTypebuild()Creates a new instance of the configured error type.static ErrorTypeBuilderbuilder()identifier(String identifier) Sets the error type identifier.Sets the error type namespace.parentErrorType(org.mule.runtime.api.message.ErrorType parentErrorType) Sets the parent error type.
-
Method Details
-
builder
- Returns:
- the
ErrorTypeBuilderimplementation. This must be the only mechanism to create an instance ofErrorType
-
identifier
Sets the error type identifier. @seeErrorType.getIdentifier().The identifier must be unique within the same namespace.
- Parameters:
identifier- the string representation- Returns:
thisbuilder
-
namespace
Sets the error type namespace. @seeErrorType.getNamespace()- Parameters:
namespace- the error type namespace- Returns:
thisbuilder
-
parentErrorType
Sets the parent error type. @seeErrorType.getParentErrorType()- Parameters:
parentErrorType- the parent error type- Returns:
thisbuilder
-
build
org.mule.runtime.api.message.ErrorType build()Creates a new instance of the configured error type.- Returns:
- the error type with the provided configuration.
-