-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finatra/http: remove ExceptionMapper.replace
Problem: ExceptionManager.replace is too fragile because it relies on module initialization order. Solution: Remove ExceptionManager.replace. Fold HttpException, HttpResponseException, CancelledRequestException into FinatraDefaultExceptionMapper to enforce built-in exception handling that shouldn't be configurable. Result: ExceptionManager.replace is gone. Users can write their own modules if the default module isn't suitable. RB_ID=720818
- Loading branch information
Showing
7 changed files
with
26 additions
and
105 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
.../scala/com/twitter/finatra/http/internal/exceptions/CancelledRequestExceptionMapper.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
http/src/main/scala/com/twitter/finatra/http/internal/exceptions/HttpExceptionMapper.scala
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...main/scala/com/twitter/finatra/http/internal/exceptions/HttpResponseExceptionMapper.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters