-
- Downloads
make it possible to track a field-name value when we are throwing api exceptions via `(checkp-*)`
* add a new subclass of ApiException called ApiFieldValidationException which is meant to be thrown when there is an issue with the input of an api field that should result in a 400 client error response. * create a `(checkp ...)` function separate from (check) which accepts a field-name value and throws our new ApiFieldValidationException * update our `(checkp-with)` macro to use the new checkp function and update a couple lines of code elsewhere to ensure not issues.
Showing
- src/java/com/metabase/corvus/api/ApiException.java 2 additions, 2 deletionssrc/java/com/metabase/corvus/api/ApiException.java
- src/java/com/metabase/corvus/api/ApiFieldValidationException.java 15 additions, 0 deletions.../com/metabase/corvus/api/ApiFieldValidationException.java
- src/metabase/api/common.clj 18 additions, 6 deletionssrc/metabase/api/common.clj
- src/metabase/api/setup.clj 1 addition, 1 deletionsrc/metabase/api/setup.clj
- test/metabase/api/setup_test.clj 1 addition, 1 deletiontest/metabase/api/setup_test.clj
Please register or sign in to comment