ezvcard.io.json
Class JCardParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ezvcard.VCardException
ezvcard.io.json.JCardParseException
- All Implemented Interfaces:
- Serializable
public class JCardParseException
- extends VCardException
Thrown during the parsing of a jCard, when a jCard is not formatted in the
correct way (the JSON syntax is valid, but it's not in the correct jCard
format).
- Author:
- Michael Angstadt
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
JCardParseException
public JCardParseException(JsonToken expected,
JsonToken actual)
- Creates a jCard parse exception.
- Parameters:
expected
- the JSON token that the parser was expectingactual
- the actual JSON token
getExpectedToken
public JsonToken getExpectedToken()
- Gets the JSON token that the parser was expected.
- Returns:
- the expected token
getActualToken
public JsonToken getActualToken()
- Gets the JSON token that was read.
- Returns:
- the actual token
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.