com.ibm.tivoli.imi.spi

Class IMException.Code

  • java.lang.Object
    • java.lang.Enum
      • com.ibm.tivoli.imi.spi.IMException.Code
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Enclosing class:
    IMException


    public static class IMException.Code
    extends java.lang.Enum
    Every IMException must have a code which identifies a generic reason or cause that generated the exception. This feature has two advantages:
    1- Avoids the IM API to have a lot of different IMException subclasses
    2- Allows the programmer to use internationalization techniques using IMException code instead of its message (String).

    Note: the Exception.getMessage() method returns the default description of the code assigned to this IM exception (in English) and the message, (if set)
    See Also:
    Serialized Form