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

Class ReadOnlyObjectError

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

Thrown by ReadOnly to indicate an attempt to set a field.
Instance Methods
 
__init__(self, field_name, message)
Create a new exception.

Inherited from exception.ExceptionWithMessage: __str__

Inherited from exceptions.Exception: __new__

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

Inherited from object: __hash__, __reduce_ex__

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

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details

__init__(self, field_name, message)
(Constructor)

 

Create a new exception.

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

Overrides: object.__init__
(inherited documentation)