gr.uoa.di.madgik.searchlibrary.operatorlibrary.comparator
Class InvalidTokenFormatComparison

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.comparator.InvalidTokenFormatComparison
All Implemented Interfaces:
Serializable

public class InvalidTokenFormatComparison
extends Exception

The InvalidTokenFormatComparison class defines an exception, used in comparing two tokens. If the tokens cannot be compared due to their inconforming formats, then an InvalidTokenFormatComparison is thrown.

Author:
UoA
See Also:
Serialized Form

Constructor Summary
InvalidTokenFormatComparison()
          Creates a new instance of the class
InvalidTokenFormatComparison(String customMesg)
          Creates a new instance of the class
InvalidTokenFormatComparison(String token1, String token2)
          Creates a new instance of the class
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidTokenFormatComparison

public InvalidTokenFormatComparison()
Creates a new instance of the class


InvalidTokenFormatComparison

public InvalidTokenFormatComparison(String customMesg)
Creates a new instance of the class

Parameters:
customMesg - The message

InvalidTokenFormatComparison

public InvalidTokenFormatComparison(String token1,
                                    String token2)
Creates a new instance of the class

Parameters:
token1 - Token used
token2 - Token used
Method Detail

toString

public String toString()
Overrides:
toString in class Throwable
Returns:
the string representation of the exception
See Also:
Object.toString()


Copyright © 2013. All Rights Reserved.