Skip to content

Instantly share code, notes, and snippets.

Created September 10, 2018 19:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save geraldoyudo/8328d3e99073a7012aee6a2a1b3fc3d0 to your computer and use it in GitHub Desktop.
public class HelloControllerAdvice {
public ApiError handleGeneralException(){
return ApiError.builder()
.error("General Error (from controller-advice)")
public ApiError handleSyntaxException(){
return ApiError.builder()
.error("Syntax Error (from controller-advice)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment