Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(Objects.isNull(template))
- throw new TemplateNotFoundException("wrong code: " + command.getTemplateCode());
- Optional.ofNullable(template).orElseThrow(() -> new TemplateNotFoundException(command.getTemplateCode()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement