#ifndef BABBLEMUD_EXCEPTIONS_H
#define BABBLEMUD_EXCEPTIONS_H


// exception handler - takes exception code (language-independent)
class msg : public exception
    {
    private:
      const string code_;
    public:
    // ctor
    msg (const string & code) throw () : code_ (code) {}
    virtual ~msg () throw () {}
    virtual const char* what () const throw ()
      { return code_.c_str (); }
    };  // end of class msg
  
#endif // BABBLEMUD_EXCEPTIONS_H
