org.exolab.castor.mapping

Class MappingRuntimeException


public class MappingRuntimeException
extends 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 $
Authors:
Assaf Arkin
Keith Visco

Constructor Summary

MappingRuntimeException(String message)
Creates a new MappingRuntimeException
MappingRuntimeException(String message, Object[] args)
Creates a new MappingRuntimeException
MappingRuntimeException(Throwable exception)
Creates a new MappingRuntimeException
MappingRuntimeException(Throwable exception, String message)
Creates a new MappingRuntimeException

Method Summary

Throwable
getException()
Returns the Exception which caused this Exception, or null if no nested exception exists.
void
printStackTrace()
void
printStackTrace(PrintStream print)
void
printStackTrace(PrintWriter print)

Constructor Details

MappingRuntimeException

public MappingRuntimeException(String message)
Creates a new MappingRuntimeException
Parameters:
message - the error message

MappingRuntimeException

public MappingRuntimeException(String message,
                               Object[] args)
Creates a new MappingRuntimeException
Parameters:
message - the error message

MappingRuntimeException

public MappingRuntimeException(Throwable exception)
Creates a new MappingRuntimeException
Parameters:
exception - the Exception which caused this Exception.

MappingRuntimeException

public MappingRuntimeException(Throwable exception,
                               String message)
Creates a new MappingRuntimeException
Parameters:
exception - the Exception which caused this Exception.
message - the error message

Method Details

getException

public 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(PrintStream print)

printStackTrace

public void printStackTrace(PrintWriter print)

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