Package grizzled :: Module misc :: Class ReadOnlyObjectError
[hide private]
[frames] | no frames]

Class ReadOnlyObjectError

source code

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
        exceptions.Exception --+    
                               |    
  exception.ExceptionWithMessage --+
                                   |
                                  ReadOnlyObjectError

Thrown by ReadOnly to indicate an attempt to set a field.
Instance Methods [hide private]
 
__init__(self, field_name, message)
Create a new exception.
source code

Inherited from exception.ExceptionWithMessage: __str__

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Instance Variables [hide private]
str field_name
name of the read-only field that could not be set
str message
message to associated with the exception
Properties [hide private]

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details [hide private]

__init__(self, field_name, message)
(Constructor)

source code 

Create a new exception.

@type errorMessage: string @param errorMessage: the error message

Overrides: object.__init__
(inherited documentation)