uk.org.ogsadai.converters.webrowset
Class SQLWrappedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.sql.SQLException
                    |
                    +--uk.org.ogsadai.converters.webrowset.SQLWrappedException
All Implemented Interfaces:
java.io.Serializable

public class SQLWrappedException
extends java.sql.SQLException

Disguises a Throwable as a SQLException

Author:
The OGSA-DAI Team.
See Also:
Serialized Form

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  java.lang.Throwable mException
          Wrapped exception
 
Fields inherited from class java.sql.SQLException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
SQLWrappedException(java.lang.Throwable exception)
          Constructor.
 
Method Summary
 java.lang.Throwable getWrappedException()
          Returns the wrapped exception.
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mException

private java.lang.Throwable mException
Wrapped exception

Constructor Detail

SQLWrappedException

public SQLWrappedException(java.lang.Throwable exception)
Constructor.

Parameters:
exception - The exception to wrap.
Method Detail

getWrappedException

public java.lang.Throwable getWrappedException()
Returns the wrapped exception.

Returns:
the wrapped exception