Interface Exceptions
-
@ExceptionWrapper(idPrefix="OBJCOPY") public interface Exceptions
Exception wrapper class. The logex WrapperGenerator uses this interface to generate an implementation which returns the appropriate exception, and generates a log report when the method is called. This is used for all implementation classes in this package. The exception IDs are allocated in blocks of EXCEPTIONS_PER_CLASS, which is a lot more than is needed, but we have 32 bits for IDs, and multiples of a suitably chosen EXCEPTIONS_PER_CLASS (like 100 here) are easy to read in error messages.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CCB_START
static int
CCFPI_START
static int
CCOI_START
static int
DC_START
static int
EXCEPTIONS_PER_CLASS
static int
FB_START
static Exceptions
self
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReflectiveCopyException
cannotCopyClass(java.lang.Class<?> cls)
ReflectiveCopyException
cannotCopyInterface(java.lang.Class<?> cls)
ReflectiveCopyException
couldNotCopy(java.lang.Object obj, ReflectiveCopyException exc)
java.lang.IllegalStateException
couldNotFindClassCopier(java.lang.Class<?> cls)
java.lang.RuntimeException
exceptionInReadResolve(java.lang.Object obj, java.lang.Throwable t)
void
failureInFallback(ReflectiveCopyException exc, java.lang.Object obj, java.lang.Class<?> cls)
ReflectiveCopyException
noClassCopierForSuperclass(java.lang.Class<?> superClass)
ReflectiveCopyException
stackOverflow(java.lang.Object source, java.lang.StackOverflowError ex)
-
-
-
Field Detail
-
self
static final Exceptions self
-
EXCEPTIONS_PER_CLASS
static final int EXCEPTIONS_PER_CLASS
- See Also:
- Constant Field Values
-
FB_START
static final int FB_START
- See Also:
- Constant Field Values
-
CCB_START
static final int CCB_START
- See Also:
- Constant Field Values
-
DC_START
static final int DC_START
- See Also:
- Constant Field Values
-
CCFPI_START
static final int CCFPI_START
- See Also:
- Constant Field Values
-
CCOI_START
static final int CCOI_START
- See Also:
- Constant Field Values
-
-
Method Detail
-
failureInFallback
@Message("Object copy failed on copy of {0} which has type {1}") @Log(id=1, level=FINE) void failureInFallback(@Chain ReflectiveCopyException exc, java.lang.Object obj, java.lang.Class<?> cls)
-
stackOverflow
@Message("Stack overflow while copying {0}") @Log(id=101, level=WARNING) ReflectiveCopyException stackOverflow(java.lang.Object source, @Chain java.lang.StackOverflowError ex)
-
couldNotCopy
@Message("Could not copy {0}") @Log(id=201, level=WARNING) ReflectiveCopyException couldNotCopy(java.lang.Object obj, ReflectiveCopyException exc)
-
cannotCopyInterface
@Log(id=301, level=WARNING) @Message("Cannot copy interface (attempt was for {0})") ReflectiveCopyException cannotCopyInterface(java.lang.Class<?> cls)
-
couldNotFindClassCopier
@Log(id=302, level=WARNING) @Message("Could not find ClassCopier for {0}") java.lang.IllegalStateException couldNotFindClassCopier(java.lang.Class<?> cls)
-
cannotCopyClass
@Log(id=303, level=WARNING) @Message("Could not copy class {0}") ReflectiveCopyException cannotCopyClass(java.lang.Class<?> cls)
-
exceptionInReadResolve
@Message("Exception in readResolve() for {0}") @Log(id=401, level=WARNING) java.lang.RuntimeException exceptionInReadResolve(java.lang.Object obj, @Chain java.lang.Throwable t)
-
-