public class InterconnectError extends Object implements InterconnectObject
| Modifier and Type | Class and Description |
|---|---|
static class |
InterconnectError.InterconnectErrorType
A list of possible error type.
|
| Constructor and Description |
|---|
InterconnectError(InterconnectError.InterconnectErrorType type,
String message)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
static InterconnectError |
fromJson(String json)
Returns the InterconnectError object stored in the given JSON string.
|
String |
getMessage()
Returns a description of the problem.
|
InterconnectError.InterconnectErrorType |
getType()
Returns the type of error.
|
String |
toJson()
A JSON representation of this object.
|
public InterconnectError(InterconnectError.InterconnectErrorType type, String message)
type - the type of the errormessage - a description of the problempublic InterconnectError.InterconnectErrorType getType()
public String getMessage()
public String toJson() throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonGenerationException - if the JSON string cannot be generatedcom.fasterxml.jackson.databind.JsonMappingException - if the object cannot be mapped to a JSON stringIOException - if an I/O related problem occurredpublic static InterconnectError fromJson(String json) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
json - the JSON datacom.fasterxml.jackson.core.JsonParseException - if the JSON string cannot be parsedcom.fasterxml.jackson.databind.JsonMappingException - if the given JSON data cannot be mapped to an InterconnectError objectIOException - if an I/O related problem occurredpublic Object clone()
clone in interface InterconnectObjectclone in class ObjectCopyright © 2016 Taimos GmbH. All rights reserved.