Advertisement
Guest User

Untitled

a guest
Dec 17th, 2022
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | Software | 0 0
  1.         if (firm == null) {
  2.             log.error("Firm is mandatory");
  3.             throw new IllegalArgumentException("Firm is mandatory");
  4.         } else if (firm.name() == null) {
  5.             log.error("name is mandatory");
  6.             throw new IllegalArgumentException("name is mandatory");
  7.         } else if (firm.email() == null) {
  8.             log.error("email is mandatory");
  9.             throw new IllegalArgumentException("email is mandatory");
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement