com.thetransactioncompany.jsonrpc2
Class JSONRPC2ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
All Implemented Interfaces:
java.io.Serializable

public class JSONRPC2ParseException
extends java.lang.Exception

Thrown to indicate an exception during the parsing of a JSON-RPC 2.0 message string.

The JSON-RPC 2.0 specification and user group forum can be found here.

Version:
1.10 (2010-03-15)
Author:
Vladimir Dzhuvinov
See Also:
Serialized Form

Constructor Summary
JSONRPC2ParseException(java.lang.String message)
          Creates a new parse exception with the specified message.
JSONRPC2ParseException(java.lang.String message, java.lang.String unparsableString)
          Creates a new parse exception with the specified message and the original string that didn't parse.
 
Method Summary
 java.lang.String getUnparsableString()
          Gets original string that caused the parse exception (if specified).
 
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

JSONRPC2ParseException

public JSONRPC2ParseException(java.lang.String message)
Creates a new parse exception with the specified message.

Parameters:
message - The exception message.

JSONRPC2ParseException

public JSONRPC2ParseException(java.lang.String message,
                              java.lang.String unparsableString)
Creates a new parse exception with the specified message and the original string that didn't parse.

Parameters:
message - The exception message.
unparsableString - The unparsable string.
Method Detail

getUnparsableString

public java.lang.String getUnparsableString()
Gets original string that caused the parse exception (if specified).

Returns:
The string that didn't parse, null if none.


Copyright © 2009-2010 Vladimir Dzhuvinov. All Rights Reserved.