org.exolab.castor.mapping
Class MappingRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalStateException
                  extended byorg.exolab.castor.mapping.MappingRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class MappingRuntimeException
extends java.lang.IllegalStateException

An exception indicating an invalid mapping error. This exception extends IllegalStateException so that it can be used to replace current uses of IllegalStateException within the mapping framework. This exception is used when a nested exception needs to be reported.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:28 $
Author:
Assaf Arkin, Keith Visco
See Also:
Serialized Form

Constructor Summary
MappingRuntimeException(java.lang.String message)
          Creates a new MappingRuntimeException
MappingRuntimeException(java.lang.String message, java.lang.Object[] args)
          Creates a new MappingRuntimeException
MappingRuntimeException(java.lang.Throwable exception)
          Creates a new MappingRuntimeException
MappingRuntimeException(java.lang.Throwable exception, java.lang.String message)
          Creates a new MappingRuntimeException
 
Method Summary
 java.lang.Throwable getException()
          Returns the Exception which caused this Exception, or null if no nested exception exists.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream print)
           
 void printStackTrace(java.io.PrintWriter print)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingRuntimeException

public MappingRuntimeException(java.lang.String message)
Creates a new MappingRuntimeException

Parameters:
message - the error message

MappingRuntimeException

public MappingRuntimeException(java.lang.String message,
                               java.lang.Object[] args)
Creates a new MappingRuntimeException

Parameters:
message - the error message

MappingRuntimeException

public MappingRuntimeException(java.lang.Throwable exception)
Creates a new MappingRuntimeException

Parameters:
exception - the Exception which caused this Exception.

MappingRuntimeException

public MappingRuntimeException(java.lang.Throwable exception,
                               java.lang.String message)
Creates a new MappingRuntimeException

Parameters:
exception - the Exception which caused this Exception.
message - the error message
Method Detail

getException

public java.lang.Throwable getException()
Returns the Exception which caused this Exception, or null if no nested exception exists.

Returns:
the nested Exception.

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream print)

printStackTrace

public void printStackTrace(java.io.PrintWriter print)


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com