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 Details

  • Method Details

    • excForGetMeta

      @Message("Exception in getMeta") @Log(id=1) GmbalException excForGetMeta(@Chain MBeanException ex)
    • 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

      @Message("Null Map") @Log(id=301) IllegalArgumentException nullMap()
    • badFieldName

      @Message("Empty or null field name") @Log(id=302) IllegalArgumentException 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

      @Message("Null array parameter") @Log(id=305) IllegalArgumentException nullArrayParameter()
    • differentSizeArrays

      @Message("Different size arrays") @Log(id=306) IllegalArgumentException differentSizeArrays()
    • nullFieldsParameter

      @Message("Null fields parameter") @Log(id=307) IllegalArgumentException 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

      @Message("Null argument") @Log(id=310) IllegalArgumentException 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

      @Message("registering MBean {0}") @Log(id=406, level=INFO) void registeringMBean(ObjectName oname)
    • unregisteringMBean

      @Message("unregistering MBean {0}") @Log(id=407, level=INFO) void unregisteringMBean(ObjectName oname)
    • unexpectedException

      @Message("Got an unexpected exception from method {0}") @Log(id=408) void unexpectedException(String method, @Chain Throwable exc)
    • 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

      @Message("Name of this ManagedObject") String nameOfManagedObject()
    • attributeSettingError

      @Message("Error in setting attribute {0}") @Log(id=509) void attributeSettingError(@Chain Exception ex, String name)
    • attributeGettingError

      @Message("Error in getting attribute {0}") @Log(id=510) void attributeGettingError(@Chain Exception ex, String name)
    • 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

      @Message("Root has not been set") @Log(id=604) IllegalStateException 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

      @Message("Parent cannot be null") @Log(id=607) IllegalArgumentException 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

      @Message("Should not happen") @Log(id=610, level=FINE) void shouldNotHappen(@Chain Exception ex)
    • objectNotFound

      @Message("Object {0} not found") @Log(id=611) IllegalArgumentException objectNotFound(Object obj)
    • 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

      @Message("No description available!") String 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

      @Message("{0} is not a String") @Log(id=805) IllegalArgumentException notAString(Object obj)
    • 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

      @Message("Remove is not supported") @Log(id=810) UnsupportedOperationException 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

      @Message("row type for {0}") String rowTypeDescription(String mapType)
    • keyFieldDescription

      @Message("Key of map {0}") String keyFieldDescription(String mapType)
    • valueFieldDescription

      @Message("Value of map {0}") String valueFieldDescription(String mapType)
    • tableName

      @Message("Table:{0}") String tableName(String mapType)
    • tableDescription

      @Message("Table for map {0}") String tableDescription(String mapType)
    • 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

      @Message("No <init>(String) constructor available for class {0}") @Log(id=820, level=FINE) void noStringConstructorAvailable(@Chain Exception exc, String name)
    • deferredRegistrationException

      @Message("JMX exception on registration of MBean {0}") @Log(id=901) void deferredRegistrationException(@Chain JMException exc, MBeanImpl mbean)