Skip to content
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

Handle exceptions gracefully #113

Closed
neel1996 opened this issue Mar 12, 2022 · 2 comments
Closed

Handle exceptions gracefully #113

neel1996 opened this issue Mar 12, 2022 · 2 comments
Assignees
Labels
area/api Mimock APIs type/enhancement New feature or request
Milestone

Comments

@neel1996
Copy link
Member

Issue by neel1996
Thursday Feb 03, 2022 at 18:05 GMT
Originally opened as https://github.com/neel1996/mimock/issues/15


The exception in all layers need to be handled gracefully and propagated to the controller as an error response that could be sent back to the client

E.g:

try{
   repo.insertSomething();
} catch(Exception e){
   log(e.getMessage());
   return new Error("ERROR", "Failed while inserting data!");
}
@neel1996 neel1996 added area/api Mimock APIs type/enhancement New feature or request labels Mar 12, 2022
@neel1996
Copy link
Member Author

Comment by aravinve
Friday Feb 04, 2022 at 04:59 GMT


Exception Handling should be converted to a custom class for the overall spring boot application.
Use @ExceptionHandler to perform this customer handling and return GenericWrapperResponse

@aravinve aravinve self-assigned this Mar 16, 2022
@neel1996 neel1996 added this to the Initial alpha milestone Apr 1, 2022
@neel1996 neel1996 modified the milestones: Initial alpha, Release v2 Jul 11, 2022
@neel1996
Copy link
Member Author

Will be tracked under #264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Mimock APIs type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants