biweekly.io.json
Class JCalParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
biweekly.ICalException
biweekly.io.json.JCalParseException
- All Implemented Interfaces:
- Serializable
public class JCalParseException
- extends ICalException
Thrown during the parsing of a JSON-encoded iCalendar object (jCal) when the
jCal object is not formatted in the correct way (the JSON syntax is valid,
but it's not in the correct jCal 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 |
JCalParseException
public JCalParseException(JsonToken expected,
JsonToken actual)
- Creates a jCal 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 © 2013 Michael Angstadt. All Rights Reserved.