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