Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. if(Objects.isNull(template))
  2.             throw new TemplateNotFoundException("wrong code: " + command.getTemplateCode());
  3.    
  4. Optional.ofNullable(template).orElseThrow(() -> new TemplateNotFoundException(command.getTemplateCode()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement