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
feat(common): add error options object #10460
feat(common): add error options object #10460
Commits on Oct 25, 2022
-
feat(common): add error options object
add error options object to HttpException constructor to allow use of error cause along with custom message.
Configuration menu - View commit details
-
Copy full SHA for b5fe06d - Browse repository at this point
Copy the full SHA b5fe06dView commit details
Commits on Oct 26, 2022
-
chore(common): add deprecated warning
add deprecated warning for HttpException class when using the first argument as the error cause.
Configuration menu - View commit details
-
Copy full SHA for f5edb0f - Browse repository at this point
Copy the full SHA f5edb0fView commit details -
feat(common): add error cause option
add error cause option to bad request exception.
Configuration menu - View commit details
-
Copy full SHA for 587fbae - Browse repository at this point
Copy the full SHA 587fbaeView commit details -
refactor(common): change parameter assignment
change BadRequestException constructor parameters assignment to be clearer.
Configuration menu - View commit details
-
Copy full SHA for 071c4c5 - Browse repository at this point
Copy the full SHA 071c4c5View commit details -
refactor(common): rearrange test blocks
rearrange HttpException spec file test blocks to increase readability, better separating tests by methods and contexts.
Configuration menu - View commit details
-
Copy full SHA for d63b6df - Browse repository at this point
Copy the full SHA d63b6dfView commit details -
refactor(common): rename method parameter
rename HttpException createBody method parameter to better represent its usage. When this parameter is a string, it is used as a value to a 'message' key in the final object.
Configuration menu - View commit details
-
Copy full SHA for 7e763fa - Browse repository at this point
Copy the full SHA 7e763faView commit details -
test(common): add http exception test
add test for HttpException's getResponse method when used with a built-in exception and providing the "description" parameter as part of the "options" object.
Configuration menu - View commit details
-
Copy full SHA for 1a8ada5 - Browse repository at this point
Copy the full SHA 1a8ada5View commit details
Commits on Oct 27, 2022
-
refactor(common): add description attribute
add description attribute to HttpExceptionOptions interface so we can reuse it among children exceptions.
Configuration menu - View commit details
-
Copy full SHA for 4ded779 - Browse repository at this point
Copy the full SHA 4ded779View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5c818e - Browse repository at this point
Copy the full SHA c5c818eView commit details -
feat(common): add error cause option
add error cause option to BadGatewayException.
Configuration menu - View commit details
-
Copy full SHA for 60cb953 - Browse repository at this point
Copy the full SHA 60cb953View commit details -
refactor(common): extract description and options
extract functions that provide valid values for description and http exception options to the HttpException class
Configuration menu - View commit details
-
Copy full SHA for 7a71035 - Browse repository at this point
Copy the full SHA 7a71035View commit details -
refactor(common): extract description and options
create HttpException#extractDescriptionAndOptionsFrom method to return both description and options at the same time
Configuration menu - View commit details
-
Copy full SHA for a4a8557 - Browse repository at this point
Copy the full SHA a4a8557View commit details -
docs(common): add static method docs
add docs for HttpException.getHttpExceptionOptionsFrom explaining its intended usage.
Configuration menu - View commit details
-
Copy full SHA for 5a186af - Browse repository at this point
Copy the full SHA 5a186afView commit details -
test(common): test error cause option
test error cause option for BadRequestException.
Configuration menu - View commit details
-
Copy full SHA for 86c5084 - Browse repository at this point
Copy the full SHA 86c5084View commit details -
test(common): aggregate exception tests
aggregate HttpException children classes tests in a single run to reduce the code duplication
Configuration menu - View commit details
-
Copy full SHA for 472c711 - Browse repository at this point
Copy the full SHA 472c711View commit details -
feat(common): add error cause option
add error cause option to ConflictException.
Configuration menu - View commit details
-
Copy full SHA for 88ac6aa - Browse repository at this point
Copy the full SHA 88ac6aaView commit details -
docs(common): update exception docs
update HttpException children classes docs to reflect the changes to the "description" parameter
Configuration menu - View commit details
-
Copy full SHA for 1dff9c0 - Browse repository at this point
Copy the full SHA 1dff9c0View commit details -
feat(common): add error cause option
add error cause option to ForbiddenException.
Configuration menu - View commit details
-
Copy full SHA for c3ced1d - Browse repository at this point
Copy the full SHA c3ced1dView commit details -
feat(common): add error cause option
add error cause option to GatewayTimeoutException.
Configuration menu - View commit details
-
Copy full SHA for f629dc1 - Browse repository at this point
Copy the full SHA f629dc1View commit details -
feat(common): add error cause option
add error cause option to GoneException.
Configuration menu - View commit details
-
Copy full SHA for bd7daf1 - Browse repository at this point
Copy the full SHA bd7daf1View commit details -
feat(common): add error cause option
add error cause option to HttpVersionNotSupportedException.
Configuration menu - View commit details
-
Copy full SHA for 0328a5c - Browse repository at this point
Copy the full SHA 0328a5cView commit details -
feat(common): add error cause option
add error cause option to ImATeapotException.
Configuration menu - View commit details
-
Copy full SHA for 11d2763 - Browse repository at this point
Copy the full SHA 11d2763View commit details -
feat(common): add error cause option
add error cause option to InternalServerErrorException.
Configuration menu - View commit details
-
Copy full SHA for b815143 - Browse repository at this point
Copy the full SHA b815143View commit details -
feat(common): add error cause option
add error cause option to MethodNotAllowedException.
Configuration menu - View commit details
-
Copy full SHA for 789e99c - Browse repository at this point
Copy the full SHA 789e99cView commit details -
feat(common): add error cause option
add error cause option to MisdirectedException.
Configuration menu - View commit details
-
Copy full SHA for cd44ff3 - Browse repository at this point
Copy the full SHA cd44ff3View commit details -
feat(common): add error cause option
add error cause option to NotAcceptableException.
Configuration menu - View commit details
-
Copy full SHA for 3a10258 - Browse repository at this point
Copy the full SHA 3a10258View commit details -
feat(common): add error cause option
add error cause option to NotFoundException.
Configuration menu - View commit details
-
Copy full SHA for d569aaa - Browse repository at this point
Copy the full SHA d569aaaView commit details -
feat(common): add error cause option
add error cause option to NotImplementedException.
Configuration menu - View commit details
-
Copy full SHA for 2416df6 - Browse repository at this point
Copy the full SHA 2416df6View commit details -
feat(common): add error cause option
add error cause option to PayloadTooLargeException.
Configuration menu - View commit details
-
Copy full SHA for dfc28fc - Browse repository at this point
Copy the full SHA dfc28fcView commit details -
feat(common): add error cause option
add error cause option to PreconditionFailedException.
Configuration menu - View commit details
-
Copy full SHA for d40ebd1 - Browse repository at this point
Copy the full SHA d40ebd1View commit details -
feat(common): add error cause option
add error cause option to RequestTimeoutException.
Configuration menu - View commit details
-
Copy full SHA for 5031f41 - Browse repository at this point
Copy the full SHA 5031f41View commit details -
feat(common): add error cause option
add error cause option to ServiceUnavailableException.
Configuration menu - View commit details
-
Copy full SHA for e8abd9a - Browse repository at this point
Copy the full SHA e8abd9aView commit details -
feat(common): add error cause option
add error cause option to UnauthorizedException.
Configuration menu - View commit details
-
Copy full SHA for f62acac - Browse repository at this point
Copy the full SHA f62acacView commit details -
feat(common): add error cause option
add error cause option to UnprocessableEntityException.
Configuration menu - View commit details
-
Copy full SHA for b4aca5d - Browse repository at this point
Copy the full SHA b4aca5dView commit details -
feat(common): add error cause option
add error cause option to UnsupportedMediaTypeException.
Configuration menu - View commit details
-
Copy full SHA for 379b82c - Browse repository at this point
Copy the full SHA 379b82cView commit details -
test(common): reuse error cause variable
reuse errorCause variable in HttpException test
Configuration menu - View commit details
-
Copy full SHA for 971ce5f - Browse repository at this point
Copy the full SHA 971ce5fView commit details -
test(common): add http exception tests
add tests for all HttpException children classes and fix NotAcceptableException wrong status code.
Configuration menu - View commit details
-
Copy full SHA for 45b6cc1 - Browse repository at this point
Copy the full SHA 45b6cc1View commit details -
test(common): add http exception tests
add "getStatus" tests for all HttpException children classes
Configuration menu - View commit details
-
Copy full SHA for ab881e3 - Browse repository at this point
Copy the full SHA ab881e3View commit details