Browse Source

[Exceptions] pep8+pylint on exceptions.py

Roland Haroutiounian 9 years ago
parent
commit
33d163db8f
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      EditorialModel/exceptions.py

+ 5
- 0
EditorialModel/exceptions.py View File

1
 # -*- coding: utf-8 -*-
1
 # -*- coding: utf-8 -*-
2
 
2
 
3
+
3
 ## @brief An exception class to tell that a component don't exist
4
 ## @brief An exception class to tell that a component don't exist
4
 class EmComponentNotExistError(Exception):
5
 class EmComponentNotExistError(Exception):
5
     pass
6
     pass
6
 
7
 
8
+
7
 ## @brief Raised on uniq constraint error at creation
9
 ## @brief Raised on uniq constraint error at creation
8
 # This exception class is dedicated to be raised when create() method is called
10
 # This exception class is dedicated to be raised when create() method is called
9
 # if an EmComponent with this name but different parameters allready exist
11
 # if an EmComponent with this name but different parameters allready exist
10
 class EmComponentExistError(Exception):
12
 class EmComponentExistError(Exception):
11
     pass
13
     pass
12
 
14
 
15
+
13
 ## @brief An exception class to tell that no ranking exist yet for the group of the object
16
 ## @brief An exception class to tell that no ranking exist yet for the group of the object
14
 class EmComponentRankingNotExistError(Exception):
17
 class EmComponentRankingNotExistError(Exception):
15
     pass
18
     pass
16
 
19
 
20
+
17
 ## @brief An exception class to return a failure reason for EmComponent.check() method
21
 ## @brief An exception class to return a failure reason for EmComponent.check() method
18
 class EmComponentCheckError(Exception):
22
 class EmComponentCheckError(Exception):
19
     pass
23
     pass
20
 
24
 
25
+
21
 class MigrationHandlerChangeError(Exception):
26
 class MigrationHandlerChangeError(Exception):
22
     pass
27
     pass

Loading…
Cancel
Save