fr.tireme.schemadoc.xs2dtd.exceptions
Class Xs2dtdException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by fr.tireme.schemadoc.xs2dtd.exceptions.Xs2dtdException
All Implemented Interfaces:
java.io.Serializable

public class Xs2dtdException
extends java.lang.Exception

XS2DTD exceptions The 'message' used in the various constructors should correspond to a specific key of the log.exceptions ressource bundle in order to be properly localised.

Author:
niemaz@xrce.xerox.com, nicolas.guerin@xrce.xerox.com
See Also:
Serialized Form

Constructor Summary
Xs2dtdException()
          Default Constructor.
Xs2dtdException(java.util.logging.Level severity, java.lang.String message)
          Construct a new Xs2dtdException object with a severity and a message
Xs2dtdException(java.util.logging.Level severity, java.lang.String className, java.lang.String methodName, java.lang.String message)
          Construct a new Xs2dtdException object with a severity, class and method names and a message
Xs2dtdException(java.util.logging.Level severity, java.lang.String className, java.lang.String methodName, java.lang.String message, java.lang.Exception e)
          Construct a new Xs2dtdException object with a severity, class and method names, a message and a previous exception
Xs2dtdException(java.lang.String message)
          Construct a new Xs2dtdException object with a message.
 
Method Summary
 void print()
          Print exception detailed information
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Xs2dtdException

public Xs2dtdException()
Default Constructor. Does not log the exception


Xs2dtdException

public Xs2dtdException(java.lang.String message)
Construct a new Xs2dtdException object with a message. Default severity level is INFO

Parameters:
message - the exception message

Xs2dtdException

public Xs2dtdException(java.util.logging.Level severity,
                       java.lang.String message)
Construct a new Xs2dtdException object with a severity and a message

Parameters:
severity - the exception severity (@see java.util.logging.Level)
message - the exception message

Xs2dtdException

public Xs2dtdException(java.util.logging.Level severity,
                       java.lang.String className,
                       java.lang.String methodName,
                       java.lang.String message)
Construct a new Xs2dtdException object with a severity, class and method names and a message

Parameters:
severity - the exception severity (@see java.util.logging.Level)
className - Name of the class of the object that raised the exception
methodName - Name of the method that raised the exception
message - the exception message

Xs2dtdException

public Xs2dtdException(java.util.logging.Level severity,
                       java.lang.String className,
                       java.lang.String methodName,
                       java.lang.String message,
                       java.lang.Exception e)
Construct a new Xs2dtdException object with a severity, class and method names, a message and a previous exception

Parameters:
severity - the exception severity (@see java.util.logging.Level)
className - Name of the class of the object that raised the exception
methodName - Name of the method that raised the exception
message - the exception message
e - the previous exception
Method Detail

print

public void print()
Print exception detailed information