org.apache.commons.mapper
Class MapperException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.mapper.MapperException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ObjectNotFoundException, UniqueFieldAlreadyExistsException

public class MapperException
extends Exception

MapperException encapsulates everything that could go wrong with mappers. Often this will wrap another type of exception such as SQLException so that callers are insulated from implementation specific exceptions. Callers can check the getCause() method for the wrapped exception.

See Also:
Serialized Form

Constructor Summary
MapperException()
          Constructor for MapperException.
MapperException(String message)
          Constructor for MapperException.
MapperException(String message, Throwable cause)
          Constructor for MapperException.
MapperException(Throwable cause)
          Constructor for MapperException.
 
Method Summary
 Throwable getCause()
          Returns the cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapperException

public MapperException()
Constructor for MapperException.


MapperException

public MapperException(String message)
Constructor for MapperException.

Parameters:
message -

MapperException

public MapperException(String message,
                       Throwable cause)
Constructor for MapperException.

Parameters:
message -
cause -

MapperException

public MapperException(Throwable cause)
Constructor for MapperException.

Parameters:
cause -
Method Detail

getCause

public Throwable getCause()
Returns the cause.

Overrides:
getCause in class Throwable
Returns:
Throwable


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.