src/main/java/br/eng/joaofaro/taskmanager/exception/TaskManagerExceptionHandler.java
/**
     * <p>Internal server error handle</p>
     *
     * @param e - exception
     * @return Error model
     */
Internal server error handle
@param e - exception
@return Error model
Internal server error handle @param e - exception @return Error model
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR)
    @ExceptionHandler(TaskManagerException.class)
    public ErrorDto taskManagerExceptionHandle(Exception e) {
        return new ErrorDto(String.valueOf(HttpStatus.INTERNAL_SERVER_ERROR.value()), e.getMessage());
    }
@ ResponseStatus ( code = HttpStatus . INTERNAL_SERVER_ERROR ) @ ExceptionHandler ( TaskManagerException . class ) public ErrorDto taskManagerExceptionHandle ( Exception e ) { return new ErrorDto ( String . valueOf ( HttpStatus . INTERNAL_SERVER_ERROR . value ( ) ) , e . getMessage ( ) ) ; }
<p>Internal server error handle</p>
 @param e - exception
 @return Error model
<p > Internal server error handle< / p > @param e - exception @return Error model