biweekly.io.json
Class JCalParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by biweekly.ICalException
                  extended by 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

Constructor Summary
JCalParseException(JsonToken expected, JsonToken actual)
          Creates a jCal parse exception.
 
Method Summary
 JsonToken getActualToken()
          Gets the JSON token that was read.
 JsonToken getExpectedToken()
          Gets the JSON token that the parser was expected.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JCalParseException

public JCalParseException(JsonToken expected,
                          JsonToken actual)
Creates a jCal parse exception.

Parameters:
expected - the JSON token that the parser was expecting
actual - the actual JSON token
Method Detail

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.