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.
- Author:
- ken
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Exceptionsstatic final int -
Method Summary
Modifier and TypeMethodDescriptionannotationMethodException(Method m, Exception exc) voidattributeGettingError(Exception ex, String name) voidattributeSettingError(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) voiddeferredRegistrationException(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) voiderrorInConstructingOpenData(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) voidnoStringConstructorAvailable(Exception exc, String name) notAString(Object obj) nullMap()objectAlreadyRegistered(Object obj, MBeanImpl oldMbi) objectNotFound(Object obj) openToJavaNotSupported(OpenType otype, EvaluatedType javaType) parentNotFound(Object parent) voidregisteringMBean(ObjectName oname) voidrootRegisterFail(Exception ex, ObjectName rootName) rowTypeDescription(String mapType) voidsingletonCannotSpecifyName(MBeanImpl parentEntity, String type, String name) stringConversionError(Class cls, Exception exc) tableDescription(String mapType) voidunexpectedException(String method, Throwable exc) voidunregisteringMBean(ObjectName oname) voidvalueFieldDescription(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
-
excForAddDescriptorFieldsToMap
@Message("@DescriptorFields must contain \'=\' : {0}") @Log(id=201) IllegalArgumentException excForAddDescriptorFieldsToMap(String field) -
excForAddAnnotationFieldsToMap
-
excForAddToMap
-
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
-
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
-
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
-
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
-
rootAlreadySet
@Message("Root has already been set: cannot set it again") @Log(id=601) IllegalStateException rootAlreadySet() -
noRootObjectName
-
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
-
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
-
objStringWrongRegisterCall
@Message("obj argument is a String: {0} : was a call to registerAtRoot intended here?") @Log(id=701) IllegalArgumentException objStringWrongRegisterCall(String str) -
exceptionInRegister
-
exceptionInUnregister
-
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
-
singletonCannotSpecifyName
-
noAnnotationFound
-
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
-
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
-
exceptionInMakeCompositeType
-
exceptionInHandleManagedData
-
removeNotSupported
-
recursiveTypesNotSupported
@Message("Recursive types are not supported: type is {0}") @Log(id=811) UnsupportedOperationException recursiveTypesNotSupported(EvaluatedType et) -
openTypeInArrayTypeException
-
exceptionInMakeMapTabularType
-
rowTypeDescription
-
keyFieldDescription
-
valueFieldDescription
-
tableName
-
tableDescription
-
excInMakeMapTabularDataToManagedEntity
-
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
-
noStringConstructorAvailable
-
deferredRegistrationException
-