Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

optional throw if present

Optional.of(usuarios.findByEmail(usuario.getEmail())).ifPresent(param -> {
      throw new IllegalArgumentException("Only Strings allowed in path parameters.")
    });
 
PREVIOUS NEXT
Tagged: #optional #throw #present
ADD COMMENT
Topic
Name
1+8 =