org.jbeans
Class BeanException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.jbeans.ReflectionException
                    |
                    +--org.jbeans.BeanException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TypeConversionException

public class BeanException
extends ReflectionException

This class is the basic exception that gets thrown from the beans pacakge

Author:
Brian Pontarelli
See Also:
Serialized Form

Constructor Summary
BeanException()
          Creates a new BeanException without detail message.
BeanException(ReflectionException re)
          This is a convience constructor that will create a new BeanException that is identical to the given ReflectionException, basically like a forced downcast constructor or a super-class copy constructor.
BeanException(String msg)
          Constructs a BeanException with the specified detail message.
BeanException(String msg, Exception rootCause)
          Constructs a BeanException with the specified error message and also the specified root cause exception.
BeanException(String msg, Exception rootCause, Throwable target)
          Constructs a BeanException with the specified error message, root cause exception and target exception.
 
Methods inherited from class org.jbeans.ReflectionException
getRootCause, getTarget, toFullString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanException

public BeanException()
Creates a new BeanException without detail message.

BeanException

public BeanException(String msg)
Constructs a BeanException with the specified detail message.
Parameters:
msg - The detail message.

BeanException

public BeanException(String msg,
                     Exception rootCause)
Constructs a BeanException with the specified error message and also the specified root cause exception. The root cause exception is generally for TypeConversionException's root cause or something that might have caused a BeanException
Parameters:
msg - The detail message
rootCause - (Optional) The root cause exception to be wrapped inside this exception

BeanException

public BeanException(String msg,
                     Exception rootCause,
                     Throwable target)
Constructs a BeanException with the specified error message, root cause exception and target exception. The root cause exception is generally for TypeConversionException's root cause or something that might have caused a BeanException. The target exception is an exception that was thrown from the getter or setter methods during reflection.
Parameters:
msg - The detail message
rootCause - (Optional) The root cause exception to be wrapped inside this exception
target - (Optional) The target exception to be wrapped inside this exception

BeanException

public BeanException(ReflectionException re)
This is a convience constructor that will create a new BeanException that is identical to the given ReflectionException, basically like a forced downcast constructor or a super-class copy constructor.
Parameters:
re - The ReflectionException to copy into this BeanException