public class ErrorModelToIdentifierSerializer extends Object
ErrorModel instances as error identifiers.| Constructor and Description |
|---|
ErrorModelToIdentifierSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.api.meta.model.error.ErrorModel |
deserialize(String errorIdentifier)
Deserializes an error model identifier into an
ErrorModel. |
static org.mule.runtime.api.meta.model.error.ErrorModel |
deserialize(String errorIdentifier,
Map<String,org.mule.runtime.api.meta.model.error.ErrorModel> errorModelRepository)
Deserializes an error model identifier into an
ErrorModel. |
static String |
serialize(org.mule.runtime.api.meta.model.error.ErrorModel errorModel)
Serializes an
ErrorModel to the following structure: nameSpace:errorType |
public static org.mule.runtime.api.meta.model.error.ErrorModel deserialize(String errorIdentifier, Map<String,org.mule.runtime.api.meta.model.error.ErrorModel> errorModelRepository)
ErrorModel. Uses an Error Model Repository to be able to rebuild the
entire error model hierarchy, if it exist.errorIdentifier - Error following the following structure nameSpace:errorType, example:
MULE:CONNECTIVITYerrorModelRepository - Repository of already built error modelsErrorModel representing the given errorIdentifierpublic static org.mule.runtime.api.meta.model.error.ErrorModel deserialize(String errorIdentifier)
ErrorModel.errorIdentifier - Error following the following structure nameSpace:errorType, example:
MULE:CONNECTIVITYErrorModel representing the given errorIdentifierpublic static String serialize(org.mule.runtime.api.meta.model.error.ErrorModel errorModel)
ErrorModel to the following structure: nameSpace:errorTypeerrorModel - Error to serializeCopyright © 2022 MuleSoft, Inc.. All rights reserved.