org.kopitubruk.util.json
Class UndefinedCodePointException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.kopitubruk.util.json.JSONException
                      extended by org.kopitubruk.util.json.UndefinedCodePointException
All Implemented Interfaces:
Serializable

public class UndefinedCodePointException
extends JSONException

Exception used when undefined code points are encountered in the input and the value of JSONConfig.getUndefinedCodePointPolicy() is JSONConfig.EXCEPTION.

Author:
Bill Davidson
See Also:
Serialized Form

Method Summary
 int getCodePoint()
          Get the code point that caused this exception.
 int getPosition()
          Get the position within the string of the code point that caused this exception.
 String getStrValue()
          Get the string value that contained this undefined code point.
 
Methods inherited from class org.kopitubruk.util.json.JSONException
getClassName, getLocalizedMessage, getMessage, setLocale
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getStrValue

public String getStrValue()
Get the string value that contained this undefined code point.

Returns:
the string value that contained this undefined code point.

getPosition

public int getPosition()
Get the position within the string of the code point that caused this exception.

Returns:
the position within the string of the code point that caused this exception.

getCodePoint

public int getCodePoint()
Get the code point that caused this exception.

Returns:
the code point that caused this exception.


Copyright © 2016. All rights reserved.