ca.sqlpower.wabit.dao
Class WabitPersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ca.sqlpower.wabit.dao.WabitPersistenceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WorkspaceOutOfSyncException

public class WabitPersistenceException
extends java.lang.Exception

A general exception for any exceptions that occur during an attempt to persist a WabitObject and/or its properties by any class that implements WabitPersister. This exception could be subclassed to provide more detail for certain exceptions, such an exception caused by a WabitObject having a different old property value than expected.

See Also:
Serialized Form

Constructor Summary
WabitPersistenceException(java.lang.String uuid)
          Constructs a WabitPersistenceException with the given UUID for the WabitObject that was being persisted.
WabitPersistenceException(java.lang.String uuid, java.lang.String message)
          Constructs a WabitPersistenceException with a given UUID and detailed message
WabitPersistenceException(java.lang.String uuid, java.lang.String message, java.lang.Throwable cause)
          Constructs a WabitPersistenceException with a given UUID, a detailed message, and a cause Throwable.
WabitPersistenceException(java.lang.String uuid, java.lang.Throwable cause)
          Constructs a WabitPersistenceException with a given UUID and a cause Throwable.
 
Method Summary
 java.lang.String getUUID()
          Returns the UUID of the WabitObject that was being persisted when this Exception occured
 
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
 

Constructor Detail

WabitPersistenceException

public WabitPersistenceException(java.lang.String uuid)
Constructs a WabitPersistenceException with the given UUID for the WabitObject that was being persisted.

Parameters:
uuid - The UUID of the WabitObject that was being persisted. If there is no particular WabitObject related to this Exception, null may be passed in instead.

WabitPersistenceException

public WabitPersistenceException(java.lang.String uuid,
                                 java.lang.String message)
Constructs a WabitPersistenceException with a given UUID and detailed message

Parameters:
uuid - The UUID of the WabitObject that was being persisted. If there is no particular WabitObject related to this Exception, null may be passed in instead.
message - A detailed error message. Can be retrieved with Throwable.getMessage().

WabitPersistenceException

public WabitPersistenceException(java.lang.String uuid,
                                 java.lang.Throwable cause)
Constructs a WabitPersistenceException with a given UUID and a cause Throwable. This can be used to wrap a more specific Exception that caused this WabitPersistenceException

Parameters:
uuid - The UUID of the WabitObject that was being persisted. If there is no particular WabitObject related to this Exception, null may be passed in instead.
cause - A Throwable that is the specific cause

WabitPersistenceException

public WabitPersistenceException(java.lang.String uuid,
                                 java.lang.String message,
                                 java.lang.Throwable cause)
Constructs a WabitPersistenceException with a given UUID, a detailed message, and a cause Throwable. This can be used to wrap a more specific Exception that caused this WabitPersistenceException

Parameters:
uuid - The UUID of the WabitObject that was being persisted. If there is no particular WabitObject related to this Exception, null may be passed in instead.
message - A detailed error message. Can be retrieved with Throwable.getMessage().
cause - A Throwable that is the specific cause
Method Detail

getUUID

public java.lang.String getUUID()
Returns the UUID of the WabitObject that was being persisted when this Exception occured

Returns:
The UUID of the WabitObject that was being persisted


Copyright © 2009. All Rights Reserved.