Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

EmileSonneveld
Copy link
Contributor

No description provided.

@EmileSonneveld EmileSonneveld linked an issue Jun 10, 2024 that may be closed by this pull request
@EmileSonneveld EmileSonneveld requested a review from soxofaan June 10, 2024 10:17
@@ -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 = ""):
Copy link
Member

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

Copy link
Contributor Author

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?

EmileSonneveld and others added 2 commits June 10, 2024 13:43
Co-authored-by: Stefaan Lippens <soxofaan@users.noreply.github.com>
@EmileSonneveld EmileSonneveld requested a review from soxofaan June 10, 2024 11:45
@soxofaan
Copy link
Member

soxofaan commented Jun 10, 2024

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)

soxofaan added a commit that referenced this pull request Jun 10, 2024
@soxofaan
Copy link
Member

overruled by 4215641

@soxofaan soxofaan closed this Jun 10, 2024
@EmileSonneveld EmileSonneveld deleted the biopar_error branch September 12, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vague error message in evaluate_process_from_url
2 participants