de.mguennewig.pobjects
Class PObjReadError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by de.mguennewig.pobjects.PObjReadError
All Implemented Interfaces:
java.io.Serializable

public class PObjReadError
extends java.lang.Error

This error is thrown if any SQL error occurs while reading.

Author:
Michael Günnewig
See Also:
Serialized Form

Constructor Summary
PObjReadError(PObjSQLException cause)
          Creates a new PObjects read error with an SQL error as cause.
PObjReadError(java.sql.SQLException cause)
          Creates a new PObjects read error with an SQL error as cause.
PObjReadError(java.lang.String msg)
          Creates a new PObjects read error with a simple text message.
 
Method Summary
 PObjException getPObjException()
          Returns the SQL error that caused this read error.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PObjReadError

public PObjReadError(java.lang.String msg)
Creates a new PObjects read error with a simple text message.


PObjReadError

public PObjReadError(java.sql.SQLException cause)
Creates a new PObjects read error with an SQL error as cause.


PObjReadError

public PObjReadError(PObjSQLException cause)
Creates a new PObjects read error with an SQL error as cause.

Method Detail

getPObjException

public PObjException getPObjException()
Returns the SQL error that caused this read error.