exceptions.rb

Path: lib/mues/exceptions.rb  (CVS)
Last Update: Sat Aug 18 22:54:10 -0700 2007

This module contains a collection of exception classes that are used throughout the MUES server.

Synopsis

  require 'mues/exceptions'
  raise MUES::Exception, "Something went wrong."

Exception Classes

[MUES::Exception]

  The base MUES exception class. Inherits from StandardError.

[MUES::EngineException]

  An error class used to indicate an error in a ((<MUES::Engine>)) object.

[MUES::EventQueueException]

  An error class used to indicate an error in a ((<MUES::EventQueue>)).

[MUES::LogError]

  An error class used to indicate an error in a log handle object.

[MUES::SecurityViolation]

  An error class used to indicate a failure of an operation due to security restrictions.

[MUES::EnvironmentError]

  An error class used to indicate an error in a ((<MUES::Environment>)).

[MUES::EnvironmentLoadError]

  An error class used to indicate an error which occurs while loading a
  ((<MUES::Environmment>)).

[MUES::EnvironmentUnloadError]

  An error class used to indicate an error which occurs while unloading a
  ((<MUES::Environmment>)).

[MUES::Reload]

  A pseudo-error class used to indicate to the listener thread that the Engine^s
  configuration is being reloaded.

[MUES::Shutdown]

  A server shutdown pseudo-error class used to signal server shutdown to the
  listener thread.

[MUES::CommandError]

  An error class used to indicate an error in a user^s command shell.

[MUES::MacroError]

  An error class used to indicate an error in a user^s MacroFilter.

[MUES::UnhandledEventError]

  An error class used to indicate that an event was dispatched to an object which
  did not provide a handler for it.

[MUES::EventRecursionError]

  An error class which is used to indicate that an event included itself in its
  own consequences. Inherits from (({ScriptError})) to avoid being caught by the
  worker thread^s exception handling.

[MUES::VirtualMethodError]

  An error class used to indicate a call to an unimplemented virtual
  method. Inherits from (({NoMethodError})).

[MUES::InstantiationError]

  An error class used to indicate an attempted instantiation of an abstract
  class. Inherits from (({TypeError})).

[MUES::SocketIOError]

  An error class used to indicate an error condition on a socket. Inherits from
  (({IOError})).

[MUES::ParseError]

  An error class used to indicate an error while parsing. Inherits from
  (({SyntaxError})).

To Do

  • Update the list of exception classes above to match what‘s actually here after it gels a bit more.

Subversion ID

$Id: exceptions.rb 1206 2004-05-09 21:25:11Z deveiant $

Authors

  • Michael Granger <ged@FaerieMUD.org>

Copyright

Copyright (c) 2000-2003 The FaerieMUD Consortium. All rights reserved.

This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

[Validate]