Package org.apache.camel.util.json
Class DeserializationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.camel.util.json.DeserializationException
-
- All Implemented Interfaces:
Serializable
public class DeserializationException extends Exception
DeserializationException explains how and where the problem occurs in the source JSON text during deserialization.- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeserializationException(int position, org.apache.camel.util.json.DeserializationException.Problems problemType, Object unexpectedObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
int
getPosition()
org.apache.camel.util.json.DeserializationException.Problems
getProblemType()
Object
getUnexpectedObject()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DeserializationException
public DeserializationException(int position, org.apache.camel.util.json.DeserializationException.Problems problemType, Object unexpectedObject)
- Parameters:
position
- where the exception occurred.problemType
- how the exception occurred.unexpectedObject
- what caused the exception.
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getPosition
public int getPosition()
- Returns:
- an index of the string character the error type occurred at.
-
getProblemType
public org.apache.camel.util.json.DeserializationException.Problems getProblemType()
- Returns:
- the enumeration for how the exception occurred.
-
getUnexpectedObject
public Object getUnexpectedObject()
- Returns:
- a representation of what caused the exception.
-
-