org.activemath.omdocjdom
Class NoSuchIDException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.activemath.omdocjdom.MBaseBuildException
                  extended by org.activemath.omdocjdom.NoSuchIDException
All Implemented Interfaces:
Serializable

public class NoSuchIDException
extends MBaseBuildException

A generic exception type to store information about what and where are things wrong.

This exception is used too often. Typically, it is sometimes used to deote a duplicate ID in which case the refElement and the element obtained by the ElementFromIDTable with the lastAttemptedID are the two contending elements. This will be made into a separate class one day.

Version:
See Also:
Serialized Form

Field Summary
static String CVS_ID
           
 ID lastAttemptedID
           
 OJElement refElement
           
 
Constructor Summary
NoSuchIDException(String message, OJElement refElement, ID lastAttemptedID)
           
NoSuchIDException(String message, OJElement refElement, OJSAXBuilder.LocationInfo info, ID lastAttemptedID)
           
 
Method Summary
 void printDetailedError(PrintStream out)
          Prints the error in a short form: displays the element name and attributes, the containing ID and the document.
 void printError(PrintStream out)
          Prints the error in a short form: displays the element name and attributes, the containing ID and the document.
 void printException()
           
 void printException(PrintStream out)
          Deprecated.  
 void printException(PrintWriter out)
          Deprecated.  
 void printStackTrace()
           
 void printStackTrace(PrintStream out)
           
 void printStackTrace(PrintWriter out)
           
 
Methods inherited from class org.activemath.omdocjdom.MBaseBuildException
getColumnNr, getLineNr, getRelativePath, getSystemId
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_ID

public static final String CVS_ID
See Also:
Constant Field Values

refElement

public final OJElement refElement

lastAttemptedID

public final ID lastAttemptedID
Constructor Detail

NoSuchIDException

public NoSuchIDException(String message,
                         OJElement refElement,
                         ID lastAttemptedID)

NoSuchIDException

public NoSuchIDException(String message,
                         OJElement refElement,
                         OJSAXBuilder.LocationInfo info,
                         ID lastAttemptedID)
Method Detail

printStackTrace

public void printStackTrace(PrintWriter out)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream out)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printException

public void printException(PrintWriter out)
Deprecated. 


printException

public void printException(PrintStream out)
Deprecated. 


printException

public void printException()

printError

public void printError(PrintStream out)
Prints the error in a short form: displays the element name and attributes, the containing ID and the document.

Overrides:
printError in class MBaseBuildException

printDetailedError

public void printDetailedError(PrintStream out)
Prints the error in a short form: displays the element name and attributes, the containing ID and the document.

Overrides:
printDetailedError in class MBaseBuildException