[Prev][Next][Index][Thread]

# Re: Defining New Error Codes?

- Date: Wed, 23 Aug 1995 12:03:50 PDT
- From:
- Reply-To:
- cc: moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <Pine.LNX.3.91.950823114246.2191A-100000@tripod.tripod.com>

    On Wed, 23 Aug 1995, Coolin MacKaarmick wrote:

    > I'd like to know if it's possible to define new error codes; for instance,
    > a MOO with monetary units might need an 'E_INSFUND' (insufficient funds)
    > error.
    >
    > This should be defined as an error so that it evaluates false.  Is there
    > any way to do this short of a server hack?  If not ... how tough of a
    > server hack is it? :)
    >
    I'm pretty sure there's no way to do it without a server hack but it
    shouldn't be that tough to do.  You can probably just add E_INSFUND to
    the enum for errors (in structures.h) and then you probably have to tell it
    that there are now 16 errors instead of 15 but I have no idea where that
    would be, and you'd probably have to hack the verb compiling stuff too.  I'd
    suggest just using E_QUOTA though since it's usually used for insufficient
    resources or funds as well as quota.

     *****************************************************************************
     *       Don Schwarz <darkowl@tezcat.com>          *     PGP fingerprint:    *
     *        http://www.tezcat.com/~darkowl           * 6E 3E B9 38 CC C2 CA CD *
     * ->Come to EnigMOO!! (junior.wariat.org 7777)<-- * 4A ED 48 66 27 FA 1C 37 *
     *    Dark_Wiz @ EnigMOO,  Clam_Boy @ AquaMOO,     ***************************
     *   Dark_Owl @ EnigMOO, LambdaMOO, PizzaMOO, OutlawMOO, MOO2000, NovaMOO    *
     *            PMC-MOO, OutlawMOO, RiverMOO, KingdomMOO, ErasMOO              *
     *****************************************************************************

References:

- Defining New Error Codes?

- From: Coolin MacKaarmick <colin@tripod.tripod.com>

- Prev: Defining New Error Codes?
- Next: Re: Defining New Error Codes?
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index