Changeset 203

Show
Ignore:
Timestamp:
06/07/05 05:04:51 (3 years ago)
Author:
ged
Message:

- Fixed line-length problems
- Added ConstituentError? and ConstituentClassError?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/simplest-thing/lib/fm/exceptions.rb

    r172 r203  
    8080 
    8181    # General exceptions 
    82     def_exception :VirtualMethodError,      "Unimplemented virtual method",                 NoMethodError 
    83     def_exception :InstantiationError,      "Instantiation attempted of abstract class",    TypeError 
    84     def_exception :ParseError,              "Error while parsing.",                         SyntaxError 
     82    def_exception :VirtualMethodError,      "Unimplemented virtual method", 
     83        NoMethodError 
     84    def_exception :InstantiationError,      "Instantiation attempted of abstract class", 
     85        TypeError 
     86    def_exception :ParseError,              "Error while parsing.", 
     87        SyntaxError 
    8588 
    8689    # State errors 
    87     def_exception :ContainmentError,        "Container nesting error",                      Exception 
    88     def_exception :UnhandledEventError,     "Unhandled event error",                        Exception 
     90    def_exception :ContainmentError,        "Container nesting error", 
     91        Exception 
     92    def_exception :UnhandledEventError,     "Unhandled event error", 
     93        Exception 
     94 
     95    # Errors which are raised when a ComposedObject subclass is invalid for some 
     96    # reason. 
     97    def_exception :ConstituentError,        "Invalid ComposedObject class", 
     98        Exception 
     99    def_exception :ConstituentClassError,   "Invalid ComposedObject Constituent class", 
     100        Exception 
    89101 
    90102end