mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-08 16:30:48 +02: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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
## @brief An exception class to tell that a component don't exist
|
## @brief An exception class to tell that a component don't exist
|
||||||
class EmComponentNotExistError(Exception):
|
class EmComponentNotExistError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
## @brief Raised on uniq constraint error at creation
|
## @brief Raised on uniq constraint error at creation
|
||||||
# This exception class is dedicated to be raised when create() method is called
|
# This exception class is dedicated to be raised when create() method is called
|
||||||
# if an EmComponent with this name but different parameters allready exist
|
# if an EmComponent with this name but different parameters allready exist
|
||||||
class EmComponentExistError(Exception):
|
class EmComponentExistError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
## @brief An exception class to tell that no ranking exist yet for the group of the object
|
## @brief An exception class to tell that no ranking exist yet for the group of the object
|
||||||
class EmComponentRankingNotExistError(Exception):
|
class EmComponentRankingNotExistError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
## @brief An exception class to return a failure reason for EmComponent.check() method
|
## @brief An exception class to return a failure reason for EmComponent.check() method
|
||||||
class EmComponentCheckError(Exception):
|
class EmComponentCheckError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MigrationHandlerChangeError(Exception):
|
class MigrationHandlerChangeError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue