TYPE MGT_REASON

TYPE MGT_REASON : (* Reason code per FBMGT DTD with extensions *)
   (OK, (* No errors *)
    NOT_READY,
    UNSUPPORTED_CMD,
    UNSUPPORTED_TYPE,
    NO_SUCH_OBJECT,
    INVALID_OBJECT,
    INVALID_OPERATION,
    INVALID_STATE,
    OVERFLOW,
    DUPLICATE_OBJECT,
    INVALID_DST,
    NULL_POINTER, (* A null object pointer was encountered *)
    INTERRUPTED, (* A management thread was interrupted *)
    UNKNOWN) (* An error of unknown type was encountered *)
     ;
END_TYPE

This Data Type enumerates the choices for the Reason attribute of the Response element defined in the FBMGT DTD and subclause 6.4 of the Compliance Profile for Feasibility Demonstrations. It includes an initial OK item for the #IMPLIED value specified in the DTD, and three additional items (NULL_POINTER, INTERRUPTED, UNKNOWN) to provide more detailed reporting of exception conditions encountered during management command processing.

When used as the Reason component of the structured type MGT_RSP, this requires only a single byte for ASN.1 encoding, versus, for example, the 18 bytes required to encode the STRING value of the XML declaration Reason="NOT_READY" .