|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.lang.exception.NestableRuntimeException
org.apache.ojb.broker.OJBRuntimeException
org.apache.ojb.broker.PersistenceBrokerException
org.apache.ojb.broker.OptimisticLockException
public class OptimisticLockException
Exception that is thrown if a violation of an optimistic lock was detected.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.lang.exception.NestableRuntimeException |
|---|
delegate |
| Constructor Summary | |
|---|---|
OptimisticLockException()
Creates a new exception instance. |
|
OptimisticLockException(String msg)
Creates a new exception instance. |
|
OptimisticLockException(String msg,
Object source)
Creates a new exception instance. |
|
OptimisticLockException(Throwable cause)
Creates a new exception instance. |
|
| Method Summary | |
|---|---|
Object |
getSourceObject()
Gets the violating object. |
void |
setSourceObject(Object sourceObject)
Sets the violating object. |
| Methods inherited from class org.apache.ojb.broker.PersistenceBrokerException |
|---|
getSourceException |
| Methods inherited from class org.apache.commons.lang.exception.NestableRuntimeException |
|---|
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OptimisticLockException()
public OptimisticLockException(String msg)
msg - The exception message
public OptimisticLockException(String msg,
Object source)
msg - The exception messagesource - The violating objectpublic OptimisticLockException(Throwable cause)
cause - The base exception| Method Detail |
|---|
public Object getSourceObject()
public void setSourceObject(Object sourceObject)
sourceObject - The object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||