public class ErrorModelToIdentifierTypeAdapter extends com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>
TypeAdapter implementation for ErrorModel, which serializes it as error identifiers.
An error identifier follows the ComponentIdentifier structure, errorNamespace:errorType.| Constructor and Description |
|---|
ErrorModelToIdentifierTypeAdapter(Map<String,org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.meta.model.error.ErrorModel |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
org.mule.runtime.api.meta.model.error.ErrorModel value) |
public ErrorModelToIdentifierTypeAdapter(Map<String,org.mule.runtime.api.meta.model.error.ErrorModel> errorModelMap)
public void write(com.google.gson.stream.JsonWriter out,
org.mule.runtime.api.meta.model.error.ErrorModel value)
throws IOException
write in class com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>IOExceptionpublic org.mule.runtime.api.meta.model.error.ErrorModel read(com.google.gson.stream.JsonReader in) throws IOException
read in class com.google.gson.TypeAdapter<org.mule.runtime.api.meta.model.error.ErrorModel>IOExceptionCopyright © 2018 MuleSoft, Inc.. All rights reserved.