1 package org.objectweb.rentacar.util; 2 3 public class RentacarException extends Exception { 4 5 private static final long serialVersionUID = 1L; 6 7 protected String messageKey; 8 9 public RentacarException() { 10 super(); 11 } 12 13 17 public RentacarException(String message, Throwable e) { 18 super(message, e); 19 } 20 21 24 public RentacarException(Throwable e) { 25 super(e); 26 } 27 28 31 public RentacarException(String message) { 32 super(message); 33 } 34 35 40 public RentacarException(String message, Throwable e, String messageKey) { 41 super(message, e); 42 this.messageKey = messageKey; 43 } 44 45 49 public RentacarException(String message, String messageKey) { 50 super(message); 51 this.messageKey = messageKey; 52 } 53 54 public String getMessageKey() { 55 return messageKey; 56 } 57 58 } 59 | Popular Tags |