org.apache.openjpa.util
Class StoreException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.openjpa.util.OpenJPAException
                  extended by org.apache.openjpa.util.StoreException
All Implemented Interfaces:
Serializable, ExceptionInfo
Direct Known Subclasses:
LockException, ObjectExistsException, ObjectNotFoundException, OptimisticException, ReferentialIntegrityException

public class StoreException
extends OpenJPAException

Base exception for data store errors.

Since:
0.2.5
Author:
Marc Prud'hommeaux
See Also:
Serialized Form

Field Summary
static int LOCK
           
static int OBJECT_EXISTS
           
static int OBJECT_NOT_FOUND
           
static int OPTIMISTIC
           
static int REFERENTIAL_INTEGRITY
           
 
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNSUPPORTED, USER
 
Constructor Summary
StoreException(Localizer.Message msg)
           
StoreException(String msg)
           
StoreException(Throwable cause)
           
 
Method Summary
 int getType()
          Exception type.
 
Methods inherited from class org.apache.openjpa.util.OpenJPAException
getCause, getFailedObject, getNestedThrowables, getSubtype, isFatal, printStackTrace, printStackTrace, printStackTrace, setCause, setFailedObject, setFatal, setNestedThrowables, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.openjpa.util.ExceptionInfo
getMessage
 

Field Detail

LOCK

public static final int LOCK
See Also:
Constant Field Values

OBJECT_NOT_FOUND

public static final int OBJECT_NOT_FOUND
See Also:
Constant Field Values

OPTIMISTIC

public static final int OPTIMISTIC
See Also:
Constant Field Values

REFERENTIAL_INTEGRITY

public static final int REFERENTIAL_INTEGRITY
See Also:
Constant Field Values

OBJECT_EXISTS

public static final int OBJECT_EXISTS
See Also:
Constant Field Values
Constructor Detail

StoreException

public StoreException(String msg)

StoreException

public StoreException(Localizer.Message msg)

StoreException

public StoreException(Throwable cause)
Method Detail

getType

public int getType()
Description copied from class: OpenJPAException
Exception type.

Specified by:
getType in interface ExceptionInfo
Specified by:
getType in class OpenJPAException


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.