Top Description Fields Methods
org.glassfish.pfl.dynamic.copyobject.impl

public Interface Exceptions

Annotations
@ExceptionWrapper
idPrefix:OBJCOPY
Imports
org.glassfish.pfl.basic.logex.Chain, .ExceptionWrapper, .Log, .LogLevel, .Message, .WrapperGenerator, org.glassfish.pfl.dynamic.copyobject.spi.ReflectiveCopyException

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.
Author
ken

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final Exceptions

Method Summary

Modifier and TypeMethod and Description
public ReflectiveCopyException
public ReflectiveCopyException
public ReflectiveCopyException
public IllegalStateException
public RuntimeException
public void
public ReflectiveCopyException
public ReflectiveCopyException

Field Detail

CCB_STARTback to summary
public static final int CCB_START
CCFPI_STARTback to summary
public static final int CCFPI_START
CCOI_STARTback to summary
public static final int CCOI_START
DC_STARTback to summary
public static final int DC_START
EXCEPTIONS_PER_CLASSback to summary
public static final int EXCEPTIONS_PER_CLASS
FB_STARTback to summary
public static final int FB_START
selfback to summary
public static final Exceptions self

Method Detail

cannotCopyClassback to summary
public ReflectiveCopyException cannotCopyClass(Class<?> cls)
Annotations
@Log
id:303
level:WARNING
@Message:Could not copy class {0}
cannotCopyInterfaceback to summary
public ReflectiveCopyException cannotCopyInterface(Class<?> cls)
Annotations
@Log
id:301
level:WARNING
@Message:Cannot copy interface (attempt was for {0})
couldNotCopyback to summary
public ReflectiveCopyException couldNotCopy(Object obj, ReflectiveCopyException exc)
Annotations
@Message:Could not copy {0}
@Log
id:201
level:WARNING
couldNotFindClassCopierback to summary
public IllegalStateException couldNotFindClassCopier(Class<?> cls)
Annotations
@Log
id:302
level:WARNING
@Message:Could not find ClassCopier for {0}
exceptionInReadResolveback to summary
public RuntimeException exceptionInReadResolve(Object obj, Throwable t)
Annotations
@Message:Exception in readResolve() for {0}
@Log
id:401
level:WARNING
failureInFallbackback to summary
public void failureInFallback(ReflectiveCopyException exc, Object obj, Class<?> cls)
Annotations
@Message:Object copy failed on copy of {0} which has type {1}
@Log
id:1
level:FINE
noClassCopierForSuperclassback to summary
public ReflectiveCopyException noClassCopierForSuperclass(Class<?> superClass)
Annotations
@Message:Cannot create ClassFieldCopier for superclass {0} : This class already has a ClassCopier
@Log
id:401
level:WARNING
stackOverflowback to summary
public ReflectiveCopyException stackOverflow(Object source, StackOverflowError ex)
Annotations
@Message:Stack overflow while copying {0}
@Log
id:101
level:WARNING