Interface ErrorTypeBuilder

All Known Implementing Classes:
DefaultErrorTypeBuilder

@NoImplement public interface ErrorTypeBuilder
Builder for ErrorType.
Since:
1.4
  • Method Details

    • builder

      static ErrorTypeBuilder builder()
      Returns:
      the ErrorTypeBuilder implementation. This must be the only mechanism to create an instance of ErrorType
    • identifier

      ErrorTypeBuilder identifier(String identifier)
      Sets the error type identifier. @see ErrorType.getIdentifier().

      The identifier must be unique within the same namespace.

      Parameters:
      identifier - the string representation
      Returns:
      this builder
    • namespace

      ErrorTypeBuilder namespace(String namespace)
      Sets the error type namespace. @see ErrorType.getNamespace()
      Parameters:
      namespace - the error type namespace
      Returns:
      this builder
    • parentErrorType

      ErrorTypeBuilder parentErrorType(org.mule.runtime.api.message.ErrorType parentErrorType)
      Sets the parent error type. @see ErrorType.getParentErrorType()
      Parameters:
      parentErrorType - the parent error type
      Returns:
      this builder
    • 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.