Package trac :: Module core :: Class TracError

Class TracError

source code

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
        exceptions.Exception --+    
                               |    
                   TracBaseError --+
                                   |
                                  TracError
Known Subclasses:

Standard exception for errors in Trac.
Instance Methods
 
__init__(self, message, title=None, show_traceback=False)
If the message contains a p or div element it will be rendered directly.
source code
 
__unicode__(self) source code

Inherited from exceptions.Exception: __new__

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

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

Class Variables

Inherited from TracBaseError: title

Properties
  message

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details

__init__(self, message, title=None, show_traceback=False)
(Constructor)

source code 

If the message contains a p or div element it will be rendered directly. Use the message class on the p or div element to style as a red box. Otherwise, the message should be plain text or contain only inline elements and will be wrapped in a p element and rendered in a red box.

If title is given, it will be displayed as the large header above the error message.

Overrides: object.__init__

__unicode__(self)

source code 
Overrides: exceptions.BaseException.__unicode__

Property Details

message

Get Method:
unreachable(self)
Set Method:
unreachable(self, v)