| Trees | Indices | Help |
|
|---|
|
|
1 # Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr@gmail.com> 2 # 3 # This program is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 1517 """ 18 Common base for errors which relate to a specific command. 19 Encapsulates everything needed to identify a command, by either its 20 object or name. 21 """ 2236 42 48 5424 self.message = message 25 26 self.command = command 27 self.name = name 28 29 if command and not name: 30 self.name = command.first_name 31 32 super(BaseError, self).__init__()3335 return self.message
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 12 02:07:19 2010 | http://epydoc.sourceforge.net |