gishur.core
Class CompareException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--gishur.core.CompareException
All Implemented Interfaces:
java.io.Serializable

public class CompareException
extends java.lang.RuntimeException

A CompareException will indicate an error occurring at the comparison of two objects. Normally a CompareException will not be catched and does not need to be mentioned in a throws-expression.

See Also:
Serialized Form

Field Summary
 Comparitor comparitor
          The Comparitor-object which tried to perform the comparison.
 java.lang.Object o1
          The objects which provoked an error comparing them.
 java.lang.Object o2
          The objects which provoked an error comparing them.
 
Constructor Summary
CompareException()
          Empty Constructor calling the inherited RuntimeException() constructor.
CompareException(Comparitor c, java.lang.Object o1, java.lang.Object o2)
          Constructor storing the two objects whose comparison with c effected this exception together with their Comparitor into this CompareException.
CompareException(java.lang.String s)
          Constructor initializing this CompareException with a string using the inherited RuntimeException(String) constructor.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

o1

public java.lang.Object o1
The objects which provoked an error comparing them.

o2

public java.lang.Object o2
The objects which provoked an error comparing them.

comparitor

public Comparitor comparitor
The Comparitor-object which tried to perform the comparison.
Constructor Detail

CompareException

public CompareException(Comparitor c,
                        java.lang.Object o1,
                        java.lang.Object o2)
Constructor storing the two objects whose comparison with c effected this exception together with their Comparitor into this CompareException.

CompareException

public CompareException(java.lang.String s)
Constructor initializing this CompareException with a string using the inherited RuntimeException(String) constructor.

CompareException

public CompareException()
Empty Constructor calling the inherited RuntimeException() constructor.