-
Notifications
You must be signed in to change notification settings - Fork 6
Add message to assert, and add it to the ProcessGraphInvalidException #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
openeo_driver/errors.py
Outdated
@@ -371,6 +371,12 @@ class ProcessGraphInvalidException(OpenEOApiException): | |||
_description = "The process doesn't contain a valid process graph, which means it doesn't comply to the general structure / schema." | |||
_tags = ['Batch Jobs', 'Data Processing', 'Secondary Services', 'User-Defined Processes'] | |||
|
|||
def __init__(self, message: str = ""): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not add methods here, the exception classes here are compiled/autogenerated from JSON from openeo-api:
# --- Begin of semi-autogenerated openEO exception classes ------------------------------------------------ |
Note that the OpenEOApiException base class already has an __init__
that should be enough to do this.
And also note that by overriding __init__
you'll probably break current usage of that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'Invalid process graph specified.' message is gone then. Ok?
Co-authored-by: Stefaan Lippens <soxofaan@users.noreply.github.com>
Actually, this is a bit related to a ticket assigned to me (which will involve changing this whole function), so maybe I should take over here (related to Open-EO/openeo-api#515) |
Based on PR #290, related to Open-EO/openeo-api#515
overruled by 4215641 |
No description provided.