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

Class AdminCommandError

source code

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

Exception raised when an admin command cannot be executed.
Instance Methods
 
__init__(self, msg, show_usage=False, cmd=None)
If message is a genshi.builder.tag object, everything up to the first <p> will be displayed in the red box, and everything after will be displayed below the red box.
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.TracError: 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 message is a genshi.builder.tag object, everything up to the first <p> will be displayed in the red box, and everything after will be displayed below the red box. If title is given, it will be displayed as the large header above the error message.
Overrides: object.__init__
(inherited documentation)