com.sas.edir.util
Class ReflectionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sas.edir.util.ReflectionException
All Implemented Interfaces:
java.io.Serializable

public class ReflectionException
extends java.lang.Exception

A ReflectionException is raised when a relfection method fails.

Version:
1.0
Author:
SAS
See Also:
Serialized Form

Constructor Summary
ReflectionException()
          Constructs an exception with no target exception or detailed message.
ReflectionException(java.lang.String message)
          Constructs an exception with the specified detailed message.
ReflectionException(java.lang.Throwable target)
          Constructs an exception with the specified target exception.
ReflectionException(java.lang.Throwable target, java.lang.String message)
          Constructs an exception with the specified target exception and detailed message.
 
Method Summary
 java.lang.Throwable getTargetException()
          Returns the thrown target exception.
 void printStackTrace()
          Prints the exception stack trace.
 void printStackTrace(java.io.PrintStream ps)
          Prints the exception stack trace to the specified stream.
 void printStackTrace(java.io.PrintWriter pw)
          Prints the exception stack trace to the specified writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectionException

public ReflectionException()
Constructs an exception with no target exception or detailed message.

ReflectionException

public ReflectionException(java.lang.String message)
Constructs an exception with the specified detailed message.

Parameters:
message - The detailed message.

ReflectionException

public ReflectionException(java.lang.Throwable target)
Constructs an exception with the specified target exception.

Parameters:
target - The target exception.

ReflectionException

public ReflectionException(java.lang.Throwable target,
                           java.lang.String message)
Constructs an exception with the specified target exception and detailed message.

Parameters:
target - The target exception.
message - The detailed message.
Method Detail

printStackTrace

public void printStackTrace()
Prints the exception stack trace.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints the exception stack trace to the specified stream.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the exception stack trace to the specified writer.
Overrides:
printStackTrace in class java.lang.Throwable

getTargetException

public java.lang.Throwable getTargetException()
Returns the thrown target exception.