Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WithdrawException extends Exception {
- /*Attributes*/
- private int clientId ;
- private float currentBalance;
- private float withdrawAmount;
- private String message;
- /*CTORs*/
- public WithdrawException(String message, int clientID, float currentBalance, float withdrawAmount) {
- super(message);
- this.clientId =clientID;
- this.currentBalance= currentBalance;
- this.withdrawAmount = withdrawAmount;
- this.message = message;
- }
- /*Setter*/
- public void setClientID (int ClientId) {
- this.clientId = ClientId;
- }
- public void setCurrentBalance (float CurrentBalance) {
- this.currentBalance = CurrentBalance;
- }
- public void setwithdrawAmount (float WithdrawAmonut) {
- this.withdrawAmount = WithdrawAmonut;
- }
- public void setMessage(String Message) {
- this.message = Message;
- }
- /*Getter*/
- public int getClientID() {
- return clientId;
- }
- public float getCurrentBalance() {
- return currentBalance;
- }
- public float getWithdrawAmonut () {
- return withdrawAmount;
- }
- public String getMessage() {
- return message;
- }
- }
Add Comment
Please, Sign In to add comment