Skip to content

Adding checkArgument function to properly throw Presto Exception when…#17245

Merged
tdcmeehan merged 1 commit intoprestodb:masterfrom
amitkdutta:checkargument_fix
Feb 4, 2022
Merged

Adding checkArgument function to properly throw Presto Exception when…#17245
tdcmeehan merged 1 commit intoprestodb:masterfrom
amitkdutta:checkargument_fix

Conversation

@amitkdutta
Copy link
Copy Markdown
Contributor

In many parts of the codebase, we use checkArgument to check argument validity. checkArgument throws IllegalArgument exception, which is not wrapped in PrestoException and error code. We add a checkArgument class in this PR that throws PrestoException with proper error code, instead of using google's checkArgument.

@amitkdutta amitkdutta force-pushed the checkargument_fix branch 3 times, most recently from 09e794b to 8a2e2b7 Compare February 3, 2022 04:33
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.

2 participants