org.apache.jdo.impl.enhancer
Class EnhancerUserException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.jdo.impl.enhancer.EnhancerUserException
All Implemented Interfaces:
java.io.Serializable

public class EnhancerUserException
extends java.lang.Exception

Thrown to indicate that the class-file enhancer failed to perform an operation due to an error. The enhancer is guaranteed to remain in a consistent state.

Author:
Michael Bouschen
See Also:
Serialized Form

Constructor Summary
EnhancerUserException()
          Creates a new EnhancerUserException without detail message.
EnhancerUserException(java.lang.String message)
          Creates a new EnhancerUserException with the specified detail message.
EnhancerUserException(java.lang.String message, java.lang.Throwable cause)
          Creates a new EnhancerUserException with the specified detail message and cause Throwable.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this Exception or null if the cause is nonexistent or unknown.
 java.lang.Throwable initCause(java.lang.Throwable cause)
          Initializes the cause of this throwable to the specified value.
 void printStackTrace()
          Prints this EnhancerUserException and its backtrace to the standard error output.
 void printStackTrace(java.io.PrintStream s)
          Prints this EnhancerUserException and its backtrace to the specified print stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this EnhancerUserException and its backtrace to the specified print writer.
 java.lang.String toString()
          The String representation includes the name of the class, the descriptive comment (if any), and the String representation of the cause (if any).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnhancerUserException

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


EnhancerUserException

public EnhancerUserException(java.lang.String message)
Creates a new EnhancerUserException with the specified detail message.

Parameters:
message - the detail message.

EnhancerUserException

public EnhancerUserException(java.lang.String message,
                             java.lang.Throwable cause)
Creates a new EnhancerUserException with the specified detail message and cause Throwable.

Parameters:
message - the detail message.
cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of this Exception or null if the cause is nonexistent or unknown. (The cause is the Throwable that caused this Exception to get thrown.)

Returns:
the cause of this Exception or null if the cause is nonexistent or unknown.

initCause

public java.lang.Throwable initCause(java.lang.Throwable cause)
Initializes the cause of this throwable to the specified value. (The cause is the Throwable that caused this Exception to get thrown.)

Parameters:
cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Returns:
a reference to this EnhancerUserException instance.

toString

public java.lang.String toString()
The String representation includes the name of the class, the descriptive comment (if any), and the String representation of the cause (if any).

Returns:
the String.

printStackTrace

public void printStackTrace()
Prints this EnhancerUserException and its backtrace to the standard error output. Print cause Throwable's stack trace as well.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this EnhancerUserException and its backtrace to the specified print stream. Print cause Throwable's stack trace as well.

Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this EnhancerUserException and its backtrace to the specified print writer. Print cause Throwable' stack trace as well.

Parameters:
s - PrintWriter to use for output


Copyright © 2005 Apache Software Foundation. All Rights Reserved.