Save This Page
Home » JBoss-5.1.0 » org » jboss » resource » [javadoc | source]
org.jboss.resource
public class: JBossResourceException [javadoc | source]
java.lang.Object
   javax.resource.ResourceException
      org.jboss.resource.JBossResourceException

All Implemented Interfaces:
    NestedThrowable

Thrown to indicate a problem with a resource related operation.

Properly displays linked exception (ie. nested exception) when printing the stack trace.

Constructor:
 public JBossResourceException(String msg) 
    Construct a JBossResourceException with the specified detail message.
    Parameters:
    msg - Detail message.
 public JBossResourceException(Throwable linked) 
    Construct a JBossResourceException with the specified linked Exception.
    Parameters:
    linked - Linked Exception.
 public JBossResourceException(String msg,
    String code) 
    Construct a JBossResourceException with the specified detail message and error code.
    Parameters:
    msg - Detail message.
    code - Error code.
 public JBossResourceException(String msg,
    Throwable linked) 
    Construct a JBossResourceException with the specified detail message and linked Exception.
    Parameters:
    msg - Detail message.
    linked - Linked Exception.
 public JBossResourceException(String msg,
    String code,
    Throwable linked) 
    Construct a JBossResourceException with the specified detail message, error code and linked Exception.
    Parameters:
    msg - Detail message.
    code - Error code.
    linked - Linked Exception.
Method from org.jboss.resource.JBossResourceException Summary:
getCause,   getMessage,   getNested,   printStackTrace,   printStackTrace,   printStackTrace,   rethrowAsResourceException
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.resource.JBossResourceException Detail:
 public Throwable getCause() 
    Return the nested Throwable.

    For JDK 1.4 compatibility.

 public String getMessage() 
    Returns the composite throwable message.
 public Throwable getNested() 
    Return the nested Throwable.
 public  void printStackTrace() 
    Prints the composite message and the embedded stack trace to System.err.
 public  void printStackTrace(PrintStream stream) 
    Prints the composite message and the embedded stack trace to the specified print stream.
 public  void printStackTrace(PrintWriter writer) 
    Prints the composite message and the embedded stack trace to the specified print writer.
 public static  void rethrowAsResourceException(String message,
    Throwable t) throws ResourceException 
    Rethrow as a resource exception if it is not already