/** @file MOMException.idl
 *
 * Copyright (C) Espial Limited 2014 - Company confidential - All rights reserved.
 *
 */

    [
        Conditional=RMAI,
		DoNotCheckConstants
    ] interface MOMException {
        readonly attribute unsigned short   code;
        readonly attribute DOMString        name;
        readonly attribute DOMString        message;

        const unsigned short INVALID = 1;
        const unsigned short BUSY = 2;
        const unsigned short NOTPRESENT = 3;
        const unsigned short DISCFULL = 4;
        const unsigned short FAILURE = 5;
        const unsigned short NOTAUTHORISED = 6;
        const unsigned short RATING = 7;
        const unsigned short DIALOG = 8;
        const unsigned short START_OF_STREAM = 9;
        const unsigned short END_OF_STREAM = 10;
        const unsigned short TSB_WRAP = 11;
        const unsigned short PIN_WRONG = 12;
        const unsigned short PIN_LOCKED = 13;
        const unsigned short EXPIRED = 14;

        DOMString toString();
    };
