-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from JonatanMartens/development
v2.1.0
- Loading branch information
Showing
28 changed files
with
284 additions
and
134 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
Empty file.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
from .job_exceptions import * | ||
from .message_exceptions import * | ||
from .pyzeebe_exceptions import * | ||
from .workflow_exceptions import * | ||
from .zeebe_exceptions import * |
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,28 @@ | ||
from pyzeebe.exceptions.pyzeebe_exceptions import PyZeebeException | ||
|
||
|
||
class ActivateJobsRequestInvalid(PyZeebeException): | ||
def __init__(self, task_type: str, worker: str, timeout: int, max_jobs_to_activate: int): | ||
msg = "Failed to activate jobs. Reasons:" | ||
if task_type == "" or task_type is None: | ||
msg = msg + "task_type is empty, " | ||
if worker == "" or task_type is None: | ||
msg = msg + "worker is empty, " | ||
if timeout < 1: | ||
msg = msg + "job timeout is smaller than 0ms, " | ||
if max_jobs_to_activate < 1: | ||
msg = msg + "max_jobs_to_activate is smaller than 0ms, " | ||
|
||
super().__init__(msg) | ||
|
||
|
||
class JobAlreadyDeactivated(PyZeebeException): | ||
def __init__(self, job_key: int): | ||
super().__init__(f"Job {job_key} was already stopped (Completed/Failed/Error)") | ||
self.job_key = job_key | ||
|
||
|
||
class JobNotFound(PyZeebeException): | ||
def __init__(self, job_key: int): | ||
super().__init__(f"Job {job_key} not found") | ||
self.job_key = job_key |
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 @@ | ||
from pyzeebe.exceptions.pyzeebe_exceptions import PyZeebeException | ||
|
||
|
||
class MessageAlreadyExists(PyZeebeException): | ||
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,16 @@ | ||
class PyZeebeException(Exception): | ||
pass | ||
|
||
|
||
class TaskNotFound(PyZeebeException): | ||
pass | ||
|
||
|
||
class NoVariableNameGiven(PyZeebeException): | ||
def __init__(self, task_type: str): | ||
super().__init__(f"No variable name given for single_value task {task_type}") | ||
self.task_type = task_type | ||
|
||
|
||
class NoZeebeAdapter(PyZeebeException): | ||
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,29 @@ | ||
from pyzeebe.exceptions.pyzeebe_exceptions import PyZeebeException | ||
|
||
|
||
class WorkflowNotFound(PyZeebeException): | ||
def __init__(self, bpmn_process_id: str, version: int): | ||
super().__init__( | ||
f"Workflow definition: {bpmn_process_id} with {version} was not found") | ||
self.bpmn_process_id = bpmn_process_id | ||
self.version = version | ||
|
||
|
||
class WorkflowInstanceNotFound(PyZeebeException): | ||
def __init__(self, workflow_instance_key: int): | ||
super().__init__(f"Workflow instance key: {workflow_instance_key} was not found") | ||
self.workflow_instance_key = workflow_instance_key | ||
|
||
|
||
class WorkflowHasNoStartEvent(PyZeebeException): | ||
def __init__(self, bpmn_process_id: str): | ||
super().__init__(f"Workflow {bpmn_process_id} has no start event that can be called manually") | ||
self.bpmn_process_id = bpmn_process_id | ||
|
||
|
||
class WorkflowInvalid(PyZeebeException): | ||
pass | ||
|
||
|
||
class InvalidJSON(PyZeebeException): | ||
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,13 @@ | ||
from pyzeebe.exceptions.pyzeebe_exceptions import PyZeebeException | ||
|
||
|
||
class ZeebeBackPressure(PyZeebeException): | ||
pass | ||
|
||
|
||
class ZeebeGatewayUnavailable(PyZeebeException): | ||
pass | ||
|
||
|
||
class ZeebeInternalError(PyZeebeException): | ||
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
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
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
Oops, something went wrong.