Package org.glassfish.gmbal.impl
Interface Exceptions
@ExceptionWrapper(idPrefix="GMBAL",
resourceBundle="org.glassfish.gmbal.logex.LogStrings")
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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final Exceptions
static final int
-
Method Summary
Modifier and TypeMethodDescriptionannotationMethodException
(Method m, Exception exc) void
attributeGettingError
(Exception ex, String name) void
attributeSettingError
(Exception ex, String name) badFieldFormat
(String field) cannotAddNullAnnotation
(AnnotatedElement element) childMustBeSingleton
(ObjectName pname, String ctype, ObjectName cname) couldNotFindAttribute
(String name) couldNotFindOperation
(String name) couldNotFindOperationAndSignature
(String name, List<String> signature) createRootCalled
(String methodName) createRootNotCalled
(String methodName) void
deferredRegistrationException
(JMException exc, MBeanImpl mbean) duplicateAMXFieldName
(String actualId, String methodName, String className) duplicateAnnotation
(AnnotatedElement element, String name) duplicateFieldName
(String name) duplicateObjectNameKeyAttributes
(EvaluatedMethodDeclaration first, EvaluatedMethodDeclaration second, String className) entityNotObjectName
(Object entity) errorInConstructingMBean
(String objName, JMException exc) void
errorInConstructingOpenData
(String name, String id, JMException ex) excForAddToMap
(String name, Object value, Object oldValue) excForUnion
(String name, Object oldValue, Object value) excInOpenParameterInfo
(IllegalArgumentException exc, String paramName, EvaluatedMethodDeclaration meth) invalidRootParentName
(ObjectName oname) invalidSubtypeOfParent
(ObjectName oname, Set<String> subTypes, ObjectName objectName, String type) keyFieldDescription
(String mapType) malformedObjectName
(Exception exc, String str) noAnnotationFound
(String name, String cls) noArrayOfArray
(Exception exc) nodeAlreadyHasParent
(MBeanImpl entity) nonSingletonRequiresName
(MBeanImpl parentEntity, String type) noStringConstructor
(Class cls) void
noStringConstructorAvailable
(Exception exc, String name) notAString
(Object obj) nullMap()
objectAlreadyRegistered
(Object obj, MBeanImpl oldMbi) objectNotFound
(Object obj) openToJavaNotSupported
(OpenType otype, EvaluatedType javaType) parentNotFound
(Object parent) void
registeringMBean
(ObjectName oname) void
rootRegisterFail
(Exception ex, ObjectName rootName) rowTypeDescription
(String mapType) void
singletonCannotSpecifyName
(MBeanImpl parentEntity, String type, String name) stringConversionError
(Class cls, Exception exc) tableDescription
(String mapType) void
unexpectedException
(String method, Throwable exc) void
unregisteringMBean
(ObjectName oname) void
valueFieldDescription
(String mapType)
-
Field Details
-
self
-
EXCEPTIONS_PER_CLASS
static final int EXCEPTIONS_PER_CLASS- See Also:
-
AMX_IMPL_START
static final int AMX_IMPL_START- See Also:
-
ATTRIBUTE_DESCRIPTOR_START
static final int ATTRIBUTE_DESCRIPTOR_START- See Also:
-
DESCRIPTOR_INTROSPECTOR_START
static final int DESCRIPTOR_INTROSPECTOR_START- See Also:
-
IMMUTABLE_DESCRIPTOR_START
static final int IMMUTABLE_DESCRIPTOR_START- See Also:
-
MBEAN_IMPL_START
static final int MBEAN_IMPL_START- See Also:
-
MBEAN_SKELETON_START
static final int MBEAN_SKELETON_START- See Also:
-
MBEAN_TREE_START
static final int MBEAN_TREE_START- See Also:
-
MANAGED_OBJECT_MANAGER_IMPL_START
static final int MANAGED_OBJECT_MANAGER_IMPL_START- See Also:
-
TYPE_CONVERTER_IMPL_START
static final int TYPE_CONVERTER_IMPL_START- See Also:
-
JMX_REGISTRATION_MANAGER_START
static final int JMX_REGISTRATION_MANAGER_START- See Also:
-
-
Method Details
-
excForGetMeta
-
excForCheckType
@Message("Required type is {0}") @Log(id=101) GmbalException excForCheckType(AttributeDescriptor.AttributeType at) -
excForMakeFromInherited
@Message("methodName and id must not both be null") @Log(id=102) IllegalArgumentException excForMakeFromInherited() -
excForMakeFromAnnotated
@Message("{0} is not a valid attribute method") @Log(id=103) IllegalArgumentException excForMakeFromAnnotated(EvaluatedDeclaration m) -
unknownDeclarationType
@Message("Unknown EvaluatedDeclaration type {0}") @Log(id=105) IllegalArgumentException unknownDeclarationType(EvaluatedDeclaration decl) -
duplicateAMXFieldName
@Message("Attribute id {0} in method {1} in class {2} is illegal becase it is a reserved Attribute id for AMX") @Log(id=106) IllegalArgumentException duplicateAMXFieldName(String actualId, String methodName, String className) -
excForAddDescriptorFieldsToMap
@Message("@DescriptorFields must contain \'=\' : {0}") @Log(id=201) IllegalArgumentException excForAddDescriptorFieldsToMap(String field) -
excForAddAnnotationFieldsToMap
@Log(id=202) @Message("Exception in addAnnotationFieldsToMap") UndeclaredThrowableException excForAddAnnotationFieldsToMap(@Chain Exception ex) -
excForAddToMap
@Message("Inconcistent values for descriptor field {0} from annotations: {1} :: {2}") @Log(id=203) IllegalArgumentException excForAddToMap(String name, Object value, Object oldValue) -
excForAnnotationToField
@Message("Illegal type for annotation element using @DescriptorKey: {0}") @Log(id=204) IllegalArgumentException excForAnnotationToField(String name) -
nullMap
-
badFieldName
-
duplicateFieldName
@Message("Duplicate field name: {0}") @Log(id=303) IllegalArgumentException duplicateFieldName(String name) -
excForReadResolveImmutableDescriptor
@Message("Bad names or values") @Log(id=304) InvalidObjectException excForReadResolveImmutableDescriptor() -
nullArrayParameter
-
differentSizeArrays
-
nullFieldsParameter
-
badFieldFormat
@Message("Missing = character: {0}") @Log(id=308) IllegalArgumentException badFieldFormat(String field) -
excForUnion
@Message("Inconsistent values for descriptor field {0}: {1} :: {2}") @Log(id=309) IllegalArgumentException excForUnion(String name, Object oldValue, Object value) -
nullArgument
-
unsupportedOperation
@Message("Descriptor is read-only") @Log(id=311) UnsupportedOperationException unsupportedOperation() -
nodeAlreadyHasParent
@Message("Cannot set parent to {0}: this node already has a parent") @Log(id=401) IllegalArgumentException nodeAlreadyHasParent(MBeanImpl entity) -
invalidSubtypeOfParent
@Message("Parent object {0} only allows subtypes {1}: cannot add child {2} of type {3}") @Log(id=402) IllegalArgumentException invalidSubtypeOfParent(ObjectName oname, Set<String> subTypes, ObjectName objectName, String type) -
childMustBeSingleton
@Message("Parent object {0} cannot contain more than one object of type {1}: cannot add child {2}") @Log(id=403) IllegalArgumentException childMustBeSingleton(ObjectName pname, String ctype, ObjectName cname) -
registerMBeanRegistered
@Message("tried to register MBean {0} that is already registered") @Log(id=404) void registerMBeanRegistered(ObjectName oname) -
unregisterMBeanNotRegistered
@Message("tried to unregister MBean {0} that is not registered") @Log(id=405) void unregisterMBeanNotRegistered(ObjectName oname) -
registeringMBean
-
unregisteringMBean
@Message("unregistering MBean {0}") @Log(id=407, level=INFO) void unregisteringMBean(ObjectName oname) -
unexpectedException
-
notBothNull
@Message("At least one of getter and setter must not be null") @Log(id=501) IllegalArgumentException notBothNull() -
typesMustMatch
@Message("Getter and setter type must match") @Log(id=502) IllegalArgumentException typesMustMatch() -
duplicateObjectNameKeyAttributes
@Message("Methods {0} and {1} are both annotated with @ObjectNameKey in class {2}") @Log(id=503) IllegalArgumentException duplicateObjectNameKeyAttributes(EvaluatedMethodDeclaration first, EvaluatedMethodDeclaration second, String className) -
parameterNamesLengthBad
@Message("ParameterNams annotation must have the same number of arguments as the length of the method parameter list") @Log(id=504) IllegalArgumentException parameterNamesLengthBad() -
couldNotFindAttribute
@Message("Could not find attribute {0}") @Log(id=505) AttributeNotFoundException couldNotFindAttribute(String name) -
couldNotFindWritableAttribute
@Message("Could not find writable attribute {0}") @Log(id=506) AttributeNotFoundException couldNotFindWritableAttribute(String name) -
couldNotFindOperation
@Message("Could not find operation named {0}") @Log(id=507) IllegalArgumentException couldNotFindOperation(String name) -
couldNotFindOperationAndSignature
@Message("Could not find operation named {0} with signature {1}") @Log(id=508) IllegalArgumentException couldNotFindOperationAndSignature(String name, List<String> signature) -
nameOfManagedObject
-
attributeSettingError
-
attributeGettingError
-
excInOpenParameterInfo
@Message("OpenDataException trying to create OpenMBEanParameterInfoSupport for parameter {0} on method {1}") @Log(id=511) IllegalStateException excInOpenParameterInfo(@Chain IllegalArgumentException exc, String paramName, EvaluatedMethodDeclaration meth) -
annotationMethodException
@Message("Exception on invoking annotation method {0}") @Log(id=512, level=SEVERE) RuntimeException annotationMethodException(Method m, @Chain Exception exc) -
rootAlreadySet
@Message("Root has already been set: cannot set it again") @Log(id=601) IllegalStateException rootAlreadySet() -
noRootObjectName
@Message("Could not construct ObjectName for root") @Log(id=602) IllegalArgumentException noRootObjectName(@Chain Exception ex) -
rootRegisterFail
@Message("Could not register root with ObjectName {0}") @Log(id=603) IllegalArgumentException rootRegisterFail(@Chain Exception ex, ObjectName rootName) -
rootNotSet
-
invalidRootParentName
@Message("rootParentName {0} is invalid: missing type or name") @Log(id=605) GmbalException invalidRootParentName(ObjectName oname) -
notPartOfThisTree
@Message("Entity {0} is not part of this EntityTree") @Log(id=606) IllegalArgumentException notPartOfThisTree(MBeanImpl mbi) -
parentCannotBeNull
-
parentNotFound
@Message("Parent object {0} not found") @Log(id=608) IllegalArgumentException parentNotFound(Object parent) -
objectAlreadyRegistered
@Message("Object {0} is already registered as {1}") @Log(id=609) IllegalArgumentException objectAlreadyRegistered(Object obj, MBeanImpl oldMbi) -
shouldNotHappen
-
objectNotFound
-
ppNullInRootParent
@Message("The ObjectName of the root parent MUST contain pp key") @Log(id=612) IllegalArgumentException ppNullInRootParent() -
typeNullInRootParent
@Message("The ObjectName of the root parent MUST contain pp key") @Log(id=613) IllegalArgumentException typeNullInRootParent() -
malformedObjectName
@Message("A MalformedObjectNameException occured on {0}") @Log(id=614) IllegalArgumentException malformedObjectName(@Chain Exception exc, String str) -
objStringWrongRegisterCall
@Message("obj argument is a String: {0} : was a call to registerAtRoot intended here?") @Log(id=701) IllegalArgumentException objStringWrongRegisterCall(String str) -
exceptionInRegister
@Message("Exception in register") @Log(id=702) IllegalArgumentException exceptionInRegister(@Chain Exception ex) -
exceptionInUnregister
@Message("Exception in unregister") @Log(id=703) IllegalArgumentException exceptionInUnregister(@Chain Exception ex) -
duplicateAnnotation
@Message("Cannot add annotation to element {0}: an Annotation of type {1} is already present") @Log(id=704) IllegalArgumentException duplicateAnnotation(AnnotatedElement element, String name) -
badInheritedAttributeAnnotation
@Message("Class {0} contains both the InheritedAttribute and the InheritedAttributes annotations") @Log(id=705) IllegalArgumentException badInheritedAttributeAnnotation(EvaluatedClassDeclaration cls) -
illegalAttributeField
@Message("Field {0} must be final and have an immutable type to be used as an attribute") @Log(id=706) IllegalArgumentException illegalAttributeField(EvaluatedFieldDeclaration cls) -
noDescriptionAvailable
-
createRootNotCalled
@Message("Method {0} cannot be called before a successful createRoot call") @Log(id=707) IllegalStateException createRootNotCalled(String methodName) -
createRootCalled
@Message("Method {0} cannot be called after a successful createRoot call") @Log(id=708) IllegalStateException createRootCalled(String methodName) -
errorInConstructingMBean
@Message("Could not construct MBean {0}") @Log(id=709) IllegalArgumentException errorInConstructingMBean(String objName, @Chain JMException exc) -
nonSingletonRequiresName
@Message("Attempt made to register non-singleton object of type {1} without a name as a child of {0}") @Log(id=710) IllegalArgumentException nonSingletonRequiresName(MBeanImpl parentEntity, String type) -
singletonCannotSpecifyName
@Message("Attempt made to register singleton object of type {1} with name {2} as a child of {0}") @Log(id=711) IllegalArgumentException singletonCannotSpecifyName(MBeanImpl parentEntity, String type, String name) -
noAnnotationFound
@Message("No {0} annotation found on {1}") @Log(id=712) IllegalArgumentException noAnnotationFound(String name, String cls) -
cannotAddNullAnnotation
@Message("Cannot add null annotation to {0}") @Log(id=713) IllegalArgumentException cannotAddNullAnnotation(AnnotatedElement element) -
managedObjectAnnotationNotFound
@Message("ManagedObject annotation not found on class {0}") @Log(id=714) IllegalArgumentException managedObjectAnnotationNotFound(String cname) -
annotationsNotSupported
@Message("Cannot call getAnnotations on {0}") @Log(id=715) IllegalArgumentException annotationsNotSupported(AnnotatedElement elem) -
unsupportedOpenType
@Message("Unsupported OpenType {0}") @Log(id=801) IllegalArgumentException unsupportedOpenType(OpenType ot) -
cannotConvertToJavaType
@Message("{0} cannot be converted into a Java class") @Log(id=802) IllegalArgumentException cannotConvertToJavaType(EvaluatedType type) -
entityNotObjectName
@Message("Management entity {0} is not an ObjectName") @Log(id=803) IllegalArgumentException entityNotObjectName(Object entity) -
noArrayOfArray
@Message("Arrays of arrays not supported") @Log(id=804) IllegalArgumentException noArrayOfArray(@Chain Exception exc) -
notAString
-
noStringConstructor
@Message("There is no <init>(String) constructor available to convert a String into a {0}") @Log(id=806) UnsupportedOperationException noStringConstructor(Class cls) -
stringConversionError
@Message("Error in converting from String to {0}") @Log(id=807) IllegalArgumentException stringConversionError(Class cls, @Chain Exception exc) -
exceptionInMakeCompositeType
@Message("Exception in makeCompositeType") @Log(id=808) IllegalArgumentException exceptionInMakeCompositeType(@Chain Exception exc) -
exceptionInHandleManagedData
@Message("Exception in handleManagedData") @Log(id=809) IllegalArgumentException exceptionInHandleManagedData(@Chain Exception exc) -
removeNotSupported
-
recursiveTypesNotSupported
@Message("Recursive types are not supported: type is {0}") @Log(id=811) UnsupportedOperationException recursiveTypesNotSupported(EvaluatedType et) -
openTypeInArrayTypeException
@Message("OpenType exception in ArrayType construction caused by {0}") @Log(id=812) IllegalArgumentException openTypeInArrayTypeException(OpenType ot, @Chain Exception exc) -
exceptionInMakeMapTabularType
@Message("Exception in makeMapTabularType") @Log(id=813) IllegalArgumentException exceptionInMakeMapTabularType(@Chain Exception exc) -
rowTypeDescription
-
keyFieldDescription
-
valueFieldDescription
-
tableName
-
tableDescription
-
excInMakeMapTabularDataToManagedEntity
@Message("Exception in makeMapTabularData:toManagedEntity") @Log(id=814) IllegalArgumentException excInMakeMapTabularDataToManagedEntity(@Chain Exception exc) -
paramTypeNeedsArgument
@Message("{0} must have at least 1 type argument") @Log(id=815) IllegalArgumentException paramTypeNeedsArgument(ParameterizedType type) -
openToJavaNotSupported
@Message("Converting from OpenType {0} to Java type {1} is not supported") @Log(id=816) UnsupportedOperationException openToJavaNotSupported(OpenType otype, EvaluatedType javaType) -
iteratorNotFound
@Message("iterator() method not found in subclass of Iterable {0}") @Log(id=817) IllegalStateException iteratorNotFound(EvaluatedClassDeclaration cls) -
nextNotFound
@Message("next() method not found in type {0}") @Log(id=818) IllegalStateException nextNotFound(EvaluatedClassDeclaration cls) -
errorInConstructingOpenData
@Message("Could not set field {1} in CompositeData for type {0}") @Log(id=819, level=FINE) void errorInConstructingOpenData(String name, String id, @Chain JMException ex) -
noStringConstructorAvailable
-
deferredRegistrationException
@Message("JMX exception on registration of MBean {0}") @Log(id=901) void deferredRegistrationException(@Chain JMException exc, MBeanImpl mbean)
-