Package io.permazen.kv
Class KVException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.kv.KVException
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
KVDatabaseException
Superclass of unchecked exceptions relating to
KVStore
s, etc.- See Also:
-
Constructor Summary
ConstructorDescriptionKVException
(String message) KVException
(String message, Throwable cause) KVException
(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KVException
public KVException() -
KVException
-
KVException
-
KVException
-
-
Method Details
-
rethrow
Rethrow this exception, which may have been created in a different thread, in the context of the current thread.This method ensures the current thread's stack frames are included in the thrown exception.
This method never returns, but has a return type that can be "thrown" to facilitate source code control flow.
- Returns:
- never
- Throws:
KVException
- always, as a duplicate of this exception with the current thread's stack frame context
-
duplicate
Create a duplicate of this exception, with the current thread's stack frames prepended.This allows the "same" exception to be thrown multiple times from different locations with different outer stack frames. The
clone()
method is used to copy this instance.- Returns:
- duplicate of this exception with the current thread's stack frame context
- See Also:
-
clone
Create a clone of this instance.
-