Package trac :: Package admin :: Module api :: Class AdminCommandError

Class AdminCommandError

source code

              object --+                
                       |                
exceptions.BaseException --+            
                           |            
        exceptions.Exception --+        
                               |        
              core.TracBaseError --+    
                                   |    
                      core.TracError --+
                                       |
                                      AdminCommandError

Exception raised when an admin command cannot be executed.
Instance Methods
 
__init__(self, msg, show_usage=False, cmd=None)
If the message contains a p or div element it will be rendered directly.
source code

Inherited from core.TracError: __unicode__

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 core.TracBaseError: title

Properties

Inherited from core.TracError: message

Inherited from exceptions.BaseException: args

Inherited from object: __class__

Method Details

__init__(self, msg, show_usage=False, cmd=None)
(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__
(inherited documentation)