public final class JavaErrorModelParserUtils extends Object
error models| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getDeclarationClass(org.mule.sdk.api.error.ErrorTypeDefinition errorTypeDefinition)
Returns the root
Class for the given errorTypeDefinition. |
static Optional<ExceptionHandlerModelProperty> |
getExceptionHandlerModelProperty(WithAnnotations element,
String elementType,
String elementName) |
static List<ErrorModelParser> |
parseExtensionErrorModels(ExtensionElement element,
String extensionNamespace)
Parses the error types defined at the extension level
|
static List<ErrorModelParser> |
parseOperationErrorModels(ExtensionModelParser extensionParser,
ExtensionElement extensionElement,
OperationElement operation)
Parses the errors defined by the
operation |
static ErrorModelParser |
toParser(String extensionNamespace,
org.mule.sdk.api.error.ErrorTypeDefinition<?> errorTypeDefinition) |
public static List<ErrorModelParser> parseExtensionErrorModels(ExtensionElement element, String extensionNamespace)
element - the ExtensionElementextensionNamespace - the extension's namespace.ErrorModelParser.public static List<ErrorModelParser> parseOperationErrorModels(ExtensionModelParser extensionParser, ExtensionElement extensionElement, OperationElement operation)
operationextensionParser - the extension's parserextensionElement - the extension's elementoperation - the operation elementErrorModelParserpublic static Class<?> getDeclarationClass(org.mule.sdk.api.error.ErrorTypeDefinition errorTypeDefinition)
Class for the given errorTypeDefinition.
Use this method to avoid dealing with legacy adapters
errorTypeDefinition - the error type definitionClasspublic static Optional<ExceptionHandlerModelProperty> getExceptionHandlerModelProperty(WithAnnotations element, String elementType, String elementName)
public static ErrorModelParser toParser(String extensionNamespace, org.mule.sdk.api.error.ErrorTypeDefinition<?> errorTypeDefinition)
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.