com.ibm.as400.access
Class PersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.as400.access.PersistenceException
All Implemented Interfaces:
Serializable

public class PersistenceException
extends Exception

Thrown when an error occurs accessing resources on the system.

Author:
Thomas Johnson (tom.johnson@kingland.com), Kingland Systems Corporation
See Also:
Serialized Form

Constructor Summary
Constructor and Description
PersistenceException()
          Default constructor.
PersistenceException(AS400Message[] messageList)
          Constructs an exception based on a list of system messages.
PersistenceException(AS400Message[] messageList, String s)
          Constructs an exception based on a list of system messages and detail string.
PersistenceException(String s)
          Constructs an exception with the given detail string.
PersistenceException(Throwable t)
          Constructs an exception with detail provided by the given throwable.
 
Method Summary
Modifier and Type Method and Description
 AS400Message[] getMessageList()
          Returns the list of associated system messages; null if not available.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceException

public PersistenceException()
Default constructor.


PersistenceException

public PersistenceException(AS400Message[] messageList)
Constructs an exception based on a list of system messages.

Parameters:
messageList - com.ibm.as400.access.AS400Message[]

PersistenceException

public PersistenceException(AS400Message[] messageList,
                            String s)
Constructs an exception based on a list of system messages and detail string.

Parameters:
messageList - com.ibm.as400.access.AS400Message[]
s - java.lang.String

PersistenceException

public PersistenceException(String s)
Constructs an exception with the given detail string.

Parameters:
s - java.lang.String

PersistenceException

public PersistenceException(Throwable t)
Constructs an exception with detail provided by the given throwable.

Parameters:
t - java.lang.Throwable
Method Detail

getMessageList

public AS400Message[] getMessageList()
Returns the list of associated system messages; null if not available.

Returns:
com.ibm.as400.access.AS400Message[]

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Throwable
Returns:
java.lang.String