junitx.framework
Class TestAccessException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--junitx.framework.TestAccessException
All Implemented Interfaces:
java.io.Serializable

public class TestAccessException
extends java.lang.Exception

The TestAccessException is beeing thrown instead of the bunch of exceptions concerning the reflection API.

See Also:
Serialized Form

Constructor Summary
TestAccessException()
          constructor
TestAccessException(java.lang.String aMsg)
          constructor
TestAccessException(java.lang.String aMsg, java.lang.Exception aReason)
          constructor
TestAccessException(java.lang.String aPrefix, java.lang.Object anObject, java.lang.String aFieldName, java.lang.String aSuffix)
          constructor
TestAccessException(java.lang.String aPrefix, java.lang.Object anObject, java.lang.String aFieldName, java.lang.String aSuffix, java.lang.Exception aReason)
          constructor
 
Method Summary
 java.lang.Exception getReason()
          gets the reason for this exception
 void printStackTrace()
          prints the stack trace of the thrown exception
 void printStackTrace(java.io.PrintStream aPrintStream)
          prints the stack trace of the thrown target exception to the specified print stream.
 void printStackTrace(java.io.PrintWriter aPrintWriter)
          prints the stack trace of the thrown target exception to the specified print writer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestAccessException

public TestAccessException()
constructor

TestAccessException

public TestAccessException(java.lang.String aMsg)
constructor
Parameters:
aMsg - an error message

TestAccessException

public TestAccessException(java.lang.String aMsg,
                           java.lang.Exception aReason)
constructor
Parameters:
aMsg - an error message
aReason - the exception which led to this one

TestAccessException

public TestAccessException(java.lang.String aPrefix,
                           java.lang.Object anObject,
                           java.lang.String aFieldName,
                           java.lang.String aSuffix)
constructor
Parameters:
aPrefix - a string prefix or null
anObject - an object instance
aFieldName - a fieldname or null
aSuffix - a string suffix or null

TestAccessException

public TestAccessException(java.lang.String aPrefix,
                           java.lang.Object anObject,
                           java.lang.String aFieldName,
                           java.lang.String aSuffix,
                           java.lang.Exception aReason)
constructor
Parameters:
aPrefix - a string prefix or null
anObject - an object instance
aFieldName - a fieldname or null
aSuffix - a string suffix or null
aReason - the exception which led to this one
Method Detail

getReason

public java.lang.Exception getReason()
gets the reason for this exception
Returns:
an exception or null

printStackTrace

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

printStackTrace

public void printStackTrace(java.io.PrintStream aPrintStream)
prints the stack trace of the thrown target exception to the specified print stream.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
aPrintStream - an instance of PrintStream

printStackTrace

public void printStackTrace(java.io.PrintWriter aPrintWriter)
prints the stack trace of the thrown target exception to the specified print writer.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
aPrintWriter - an instance of PrintWriter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
a String representation of the exception.