Guest User

Untitled

a guest
Dec 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. public class WithdrawException extends Exception {
  2.  
  3. /*Attributes*/
  4.  
  5. private int clientId ;
  6. private float currentBalance;
  7. private float withdrawAmount;
  8. private String message;
  9.  
  10. /*CTORs*/
  11. public WithdrawException(String message, int clientID, float currentBalance, float withdrawAmount) {
  12.  
  13. super(message);
  14. this.clientId =clientID;
  15. this.currentBalance= currentBalance;
  16. this.withdrawAmount = withdrawAmount;
  17. this.message = message;
  18. }
  19.  
  20. /*Setter*/
  21. public void setClientID (int ClientId) {
  22.  
  23. this.clientId = ClientId;
  24. }
  25. public void setCurrentBalance (float CurrentBalance) {
  26.  
  27. this.currentBalance = CurrentBalance;
  28. }
  29. public void setwithdrawAmount (float WithdrawAmonut) {
  30.  
  31. this.withdrawAmount = WithdrawAmonut;
  32. }
  33. public void setMessage(String Message) {
  34. this.message = Message;
  35. }
  36.  
  37. /*Getter*/
  38.  
  39. public int getClientID() {
  40. return clientId;
  41. }
  42.  
  43. public float getCurrentBalance() {
  44. return currentBalance;
  45. }
  46.  
  47. public float getWithdrawAmonut () {
  48. return withdrawAmount;
  49. }
  50. public String getMessage() {
  51. return message;
  52. }
  53.  
  54. }
Add Comment
Please, Sign In to add comment