-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw EventNotSupportedError if unkonwn event was given
- Loading branch information
1 parent
749c1cf
commit 2b3d64d
Showing
6 changed files
with
69 additions
and
34 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
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,30 @@ | ||
|
||
class BaseError(RuntimeError): | ||
def get_message(self): | ||
return self.args[0] | ||
|
||
|
||
class CommandNotFoundError(BaseError): | ||
pass | ||
|
||
|
||
class ConfigurationError(BaseError): | ||
pass | ||
|
||
|
||
class TriggerParameterConfigurationError(BaseError): | ||
pass | ||
|
||
|
||
class StopIterationAfterTrigger(BaseError): | ||
""" Signal the end trigger from LifecycleHandler.__process(). """ | ||
pass | ||
|
||
|
||
class StopProcessingAfterStateChange(BaseError): | ||
""" Signal the end from LifecycleHandler.__process(). """ | ||
pass | ||
|
||
|
||
class EventNotSupportedError(BaseError): | ||
pass |
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,5 @@ | ||
## 0.61.0 | ||
|
||
IMPROVEMENTS: | ||
|
||
* Throw EventNotSupportedError if unkonwn event was given |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setuptools.setup( | ||
name = "AutoscalingLifecycle", | ||
version = "0.60.0", | ||
version = "0.61.0", | ||
author = "Jan Schumann", | ||
author_email = "[email protected]", | ||
description = "A library to handle aws autoscaling lifecycle events", | ||
|