<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html"title="class or interface in java.lang">java.lang.Throwable</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Exception.html"title="class or interface in java.lang">java.lang.Exception</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/RuntimeException.html"title="class or interface in java.lang">java.lang.RuntimeException</A>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html"title="class or interface in java.io">Serializable</A></DD>
<DT><B>Direct Known Subclasses:</B><DD><AHREF="../../../com/google/gson/JsonIOException.html"title="class in com.google.gson">JsonIOException</A>, <AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></DD>
<DT><PRE>public class <B>JsonParseException</B><DT>extends <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/RuntimeException.html"title="class or interface in java.lang">RuntimeException</A></DL>
<p>This exception is a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/RuntimeException.html"title="class or interface in java.lang"><CODE>RuntimeException</CODE></A> because it is exposed to the client. Using a
<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/RuntimeException.html"title="class or interface in java.lang"><CODE>RuntimeException</CODE></A> avoids bad coding practices on the client side where they catch the
exception and do nothing. It is often the case that you want to blow up if there is a parsing
error (i.e. often clients do not know how to recover from a <AHREF="../../../com/google/gson/JsonParseException.html"title="class in com.google.gson"><CODE>JsonParseException</CODE></A>.</p>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonParseException.html#JsonParseException(java.lang.String)">JsonParseException</A></B>(<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html"title="class or interface in java.lang">String</A> msg)</CODE>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonParseException.html#JsonParseException(java.lang.String, java.lang.Throwable)">JsonParseException</A></B>(<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html"title="class or interface in java.lang">String</A> msg,
<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html"title="class or interface in java.lang">Throwable</A> cause)</CODE>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonParseException.html#JsonParseException(java.lang.Throwable)">JsonParseException</A></B>(<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html"title="class or interface in java.lang">Throwable</A> cause)</CODE>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html"title="class or interface in java.lang">Throwable</A></B></TH>
<TD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#fillInStackTrace()"title="class or interface in java.lang">fillInStackTrace</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#getCause()"title="class or interface in java.lang">getCause</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#getLocalizedMessage()"title="class or interface in java.lang">getLocalizedMessage</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#getMessage()"title="class or interface in java.lang">getMessage</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#getStackTrace()"title="class or interface in java.lang">getStackTrace</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#initCause(java.lang.Throwable)"title="class or interface in java.lang">initCause</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#printStackTrace()"title="class or interface in java.lang">printStackTrace</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"title="class or interface in java.lang">printStackTrace</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"title="class or interface in java.lang">printStackTrace</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])"title="class or interface in java.lang">setStackTrace</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#toString()"title="class or interface in java.lang">toString</A></CODE></TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html"title="class or interface in java.lang">Object</A></B></TH>
<TD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
public <B>JsonParseException</B>(<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html"title="class or interface in java.lang">String</A> msg)</PRE>
<DD>Creates exception with the specified message. If you are wrapping another exception, consider
using <AHREF="../../../com/google/gson/JsonParseException.html#JsonParseException(java.lang.String, java.lang.Throwable)"><CODE>JsonParseException(String, Throwable)</CODE></A> instead.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - error message describing a possible cause of this exception.</DL>
public <B>JsonParseException</B>(<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html"title="class or interface in java.lang">String</A> msg,
<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html"title="class or interface in java.lang">Throwable</A> cause)</PRE>
<DD>Creates exception with the specified message and cause.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - error message describing what happened.<DD><CODE>cause</CODE> - root exception that caused this exception to be thrown.</DL>
public <B>JsonParseException</B>(<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html"title="class or interface in java.lang">Throwable</A> cause)</PRE>
<DD>Creates exception with the specified cause. Consider using
<AHREF="../../../com/google/gson/JsonParseException.html#JsonParseException(java.lang.String, java.lang.Throwable)"><CODE>JsonParseException(String, Throwable)</CODE></A> instead if you can describe what happened.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>cause</CODE> - root exception that caused this exception to be thrown.</DL>