create UserError exception
Modules can raise this exception when they want to print errors to user
This commit is contained in:
parent
b4154b5843
commit
aea269e9f6
21 changed files with 68 additions and 47 deletions
|
|
@ -18,14 +18,14 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from .base import IBaseCap, CapBaseObject, Field, StringField, DateField
|
||||
from .base import IBaseCap, CapBaseObject, Field, StringField, DateField, UserError
|
||||
from .contact import Contact
|
||||
|
||||
|
||||
__all__ = ['OptimizationNotFound', 'Optimization', 'Event', 'ICapDating']
|
||||
|
||||
|
||||
class OptimizationNotFound(Exception):
|
||||
class OptimizationNotFound(UserError):
|
||||
"""
|
||||
Raised when an optimization is not found.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue