public final class ErrorModelBuilder extends Object
ErrorModel instances.| Modifier and Type | Method and Description |
|---|---|
ErrorModel |
build() |
static ErrorModelBuilder |
newError(ComponentIdentifier identifier)
Creates a builder to be able to create
ErrorModel instances from an error ComponentIdentifier |
static ErrorModelBuilder |
newError(String typeName,
String namespace)
Creates a builder to be able to create
ErrorModel instances |
ErrorModelBuilder |
withParent(ErrorModel parent) |
public static ErrorModelBuilder newError(String typeName, String namespace)
ErrorModel instancestypeName - The type of the ErrorModel to create.namespace - adds a namespace to the ErrorModel that is being builtErrorModelBuilder initialized with the typeNamepublic static ErrorModelBuilder newError(ComponentIdentifier identifier)
ErrorModel instances from an error ComponentIdentifieridentifier - The identifier of the error to create.ErrorModelBuilder initialized with the identifiers name and namespacepublic ErrorModelBuilder withParent(ErrorModel parent)
parent - ErrorModel of the one that is being builtErrorModelBuilderpublic ErrorModel build()
ErrorModel instanceCopyright © 2017 MuleSoft, Inc.. All rights reserved.