Save This Page
Home » JBoss-5.1.0 » org » jboss » util » [javadoc | source]
org.jboss.util
public class: NestedSQLException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.sql.SQLException
            org.jboss.util.NestedSQLException

All Implemented Interfaces:
    NestedThrowable, Iterable, Serializable

A common superclass for SQLException classes that can contain a nested Throwable detail object.
Field Summary
protected final  Throwable nested    The nested throwable 
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public NestedSQLException(String msg) 
    Construct a NestedSQLException with the specified detail message.
    Parameters:
    msg - Detail message.
 public NestedSQLException(Throwable nested) 
    Construct a NestedSQLException with the specified nested Throwable.
    Parameters:
    nested - Nested Throwable.
 public NestedSQLException(String msg,
    Throwable nested) 
    Construct a NestedSQLException with the specified detail message and nested Throwable.
    Parameters:
    msg - Detail message.
    nested - Nested Throwable.
 public NestedSQLException(String msg,
    String state) 
    Construct a NestedSQLException.
    Parameters:
    msg - Detail message.
    state - SQL state message.
 public NestedSQLException(String msg,
    String state,
    int code) 
    Construct a NestedSQLException.
    Parameters:
    msg - Detail message.
    state - SQL state message.
    code - SQL vendor code.
Method from org.jboss.util.NestedSQLException Summary:
getCause,   getMessage,   getNested,   printStackTrace,   printStackTrace,   printStackTrace
Methods from java.sql.SQLException:
getErrorCode,   getNextException,   getSQLState,   iterator,   setNextException
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.util.NestedSQLException 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.