-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise exception when spa is unreachable
- Loading branch information
1 parent
5b7bd43
commit 9c2147c
Showing
5 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
"""Initialize the package.""" | ||
|
||
from intex_spa.intex_spa import IntexSpa | ||
from intex_spa.intex_spa_status import IntexSpaStatus | ||
from intex_spa.intex_spa_exceptions import ( | ||
IntexSpaUnreachableException, | ||
IntexSpaDnsException, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""IntexSpaExceptions""" | ||
|
||
|
||
class IntexSpaUnreachableException(Exception): | ||
"""Exception raised when spa is unreachable""" | ||
|
||
|
||
class IntexSpaDnsException(Exception): | ||
"""Exception raised when DNS address cannot be resolved""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters