com.ibm.as400.access
Class PersistenceException

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

public class PersistenceException
extends Exception

Copyright © 2001, International Business Machines Corporation and others. All Rights Reserved.

Thrown when an error occurs accessing resources on the server.

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

Constructor Summary
PersistenceException()
          Default constructor.
PersistenceException(AS400Message[] messageList)
          Constructs an exception based on a list of server messages.
PersistenceException(AS400Message[] messageList, String s)
          Constructs an exception based on a list of server 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
 AS400Message[] getMessageList()
          Returns the list of associated server 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 server messages.

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

PersistenceException

public PersistenceException(AS400Message[] messageList,
                            String s)
Constructs an exception based on a list of server 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 server messages; null if not available.

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

toString

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

Returns:
java.lang.String