public class ErrorModelToIdentifierSerializer extends Object
ErrorModel instances as error identifiers.| Constructor and Description |
|---|
ErrorModelToIdentifierSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static ErrorModel |
deserialize(String errorIdentifier)
Deserializes an error model identifier into an
ErrorModel. |
static ErrorModel |
deserialize(String errorIdentifier,
Map<String,ErrorModel> errorModelRepository)
Deserializes an error model identifier into an
ErrorModel. |
static String |
serialize(ErrorModel errorModel)
Serializes an
ErrorModel to the following structure: nameSpace:errorType |
public static ErrorModel deserialize(String errorIdentifier, Map<String,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 ErrorModel deserialize(String errorIdentifier)
ErrorModel.errorIdentifier - Error following the following structure nameSpace:errorType, example:
MULE:CONNECTIVITYErrorModel representing the given errorIdentifierpublic static String serialize(ErrorModel errorModel)
ErrorModel to the following structure: nameSpace:errorTypeerrorModel - Error to serializeCopyright © 2020 MuleSoft, Inc.. All rights reserved.