mirror of
https://github.com/yweber/lodel2.git
synced 2025-12-12 13:26:53 +01:00
[Exceptions] pep8+pylint on exceptions.py
This commit is contained in:
parent
ccf36dfe8b
commit
33d163db8f
1 changed files with 5 additions and 0 deletions
|
|
@ -1,22 +1,27 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
## @brief An exception class to tell that a component don't exist
|
||||
class EmComponentNotExistError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
## @brief Raised on uniq constraint error at creation
|
||||
# This exception class is dedicated to be raised when create() method is called
|
||||
# if an EmComponent with this name but different parameters allready exist
|
||||
class EmComponentExistError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
## @brief An exception class to tell that no ranking exist yet for the group of the object
|
||||
class EmComponentRankingNotExistError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
## @brief An exception class to return a failure reason for EmComponent.check() method
|
||||
class EmComponentCheckError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class MigrationHandlerChangeError(Exception):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue