|
1 | 1 | class FlashlightException(Exception): |
2 | | - """Base class for all Flashlight errors.""" |
| 2 | + """Base class for all Flashlight exceptions.""" |
3 | 3 |
|
4 | 4 |
|
5 | 5 | class FlashlightEnableExistentUserException(FlashlightException): |
6 | 6 | """ |
7 | | - Exception thrown when an attempt was made to turn on the torch |
| 7 | + An attempt was made to turn on the torch |
8 | 8 | but it was detected that the camera was being used by another process. |
9 | 9 | This means that the torch cannot be controlled. |
10 | 10 | """ |
11 | 11 |
|
12 | 12 |
|
13 | 13 | class FlashlightEnableNotAvailableException(FlashlightException): |
14 | 14 | """ |
15 | | - Exception thrown when an attempt was made to turn on the torch |
| 15 | + An attempt was made to turn on the torch |
16 | 16 | but it was detected that the device does not have one equipped. |
17 | 17 | """ |
18 | 18 |
|
19 | 19 |
|
20 | 20 | class FlashlightEnableException(FlashlightException): |
21 | 21 | """ |
22 | | - Exception thrown when an error occurred while trying to turn on the device torch. |
| 22 | + An error occurred while trying to turn on the device torch. |
23 | 23 | """ |
24 | 24 |
|
25 | 25 |
|
26 | 26 | class FlashlightDisableExistentUserException(FlashlightException): |
27 | 27 | """ |
28 | | - Exception thrown when an attempt was made to turn off the torch |
| 28 | + An attempt was made to turn off the torch |
29 | 29 | but it was detected that the camera was being used by another process. |
30 | 30 | This means that the torch cannot be controlled. |
31 | 31 | """ |
32 | 32 |
|
33 | 33 |
|
34 | 34 | class FlashlightDisableNotAvailableException(FlashlightException): |
35 | 35 | """ |
36 | | - Exception thrown when an attempt was made to turn off the torch |
| 36 | + An attempt was made to turn off the torch, |
37 | 37 | but it was detected that the device does not have one equipped. |
38 | 38 | """ |
39 | 39 |
|
40 | 40 |
|
41 | 41 | class FlashlightDisableException(FlashlightException): |
42 | 42 | """ |
43 | | - Exception thrown when an error occurred while trying to turn off the device torch. |
| 43 | + An error occurred while trying to turn off the device torch. |
44 | 44 | """ |
0 commit comments