Hellboyandso

UnknownOrderException.java

Dec 15th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. package domain;
  2.  
  3. public class UnknownOrderException extends Exception {
  4.  
  5.     private String orderRef;
  6.  
  7.     public UnknownOrderException(String orderRef) {
  8.         super("Unknown order: "+orderRef);
  9.         this.orderRef = orderRef;
  10.     }
  11.  
  12.     public String getOrderRef() {
  13.         return orderRef;
  14.     }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment