org.tranche.remote
Class UnexpectedTokenException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.tranche.remote.UnexpectedTokenException
All Implemented Interfaces:
java.io.Serializable

public class UnexpectedTokenException
extends java.io.IOException

A special IOException where the token received is unknown/unexpected.

Author:
Jayson Falkner - jfalkner@umich.edu
See Also:
Serialized Form

Constructor Summary
UnexpectedTokenException(java.lang.String token, java.lang.String expected)
           
 
Method Summary
 
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

UnexpectedTokenException

public UnexpectedTokenException(java.lang.String token,
                                java.lang.String expected)
Parameters:
token - the token received
expected - the expected string used to form the message for the exception


This code is free for use both commercially and non-commercially as stated in the project's license