src/main/java/br/eng/joaofaro/taskmanager/exception/TaskManagerExceptionHandler.java
/**
     * <p>Task not found handle</p>
     *
     * @param e - exception
     * @return Error model
     */
Task not found handle
@param e - exception
@return Error model
Task not found handle @param e - exception @return Error model
@ResponseStatus(code = HttpStatus.NOT_FOUND)
    @ExceptionHandler(TaskNotFoundException.class)
    public ErrorDto taskManagerNotFoundExceptionHandle(Exception e) {
        return new ErrorDto(String.valueOf(HttpStatus.NOT_FOUND.value()), e.getMessage());
    }
@ ResponseStatus ( code = HttpStatus . NOT_FOUND ) @ ExceptionHandler ( TaskNotFoundException . class ) public ErrorDto taskManagerNotFoundExceptionHandle ( Exception e ) { return new ErrorDto ( String . valueOf ( HttpStatus . NOT_FOUND . value ( ) ) , e . getMessage ( ) ) ; }
<p>Task not found handle</p>
 @param e - exception
 @return Error model
<p > Task not found handle< / p > @param e - exception @return Error model