org.kopitubruk.util.json
Class UnmatchedSurrogateException

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.UnmatchedSurrogateException
All Implemented Interfaces:
Serializable

public class UnmatchedSurrogateException
extends JSONException

Exception used when unmatched surrogates are encountered in the input and the value of JSONConfig.getUnmatchedSurrogatePolicy() is JSONConfig.EXCEPTION.

Author:
Bill Davidson
See Also:
Serialized Form

Method Summary
 int getPosition()
          Get the position within the string of the unmatched surrogate that caused this exception.
 String getStrValue()
          Get the string value that contained this unmatched surrogate.
 char getUnmatchedSurrogate()
          Get the unmatched surrogate that caused this exception.
 
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 unmatched surrogate.

Returns:
the string value that contained this unmatched surrogate.

getPosition

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

Returns:
the position within the string of the unmatched surrogate that caused this exception.

getUnmatchedSurrogate

public char getUnmatchedSurrogate()
Get the unmatched surrogate that caused this exception.

Returns:
the unmatched surrogate that caused this exception.


Copyright © 2016. All rights reserved.