-
-
Save uncoded-ro/19886dbf5d8b728b6f584a2d26ab70cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ro.virtualcampus.bank; | |
public class FonduriInsuficiente extends Exception { | |
private static final long serialVersionUID = 1L; | |
private double suma; | |
public FonduriInsuficiente(double suma) { | |
this.suma = suma; | |
} | |
public void setSuma(double suma) { | |
this.suma = suma; | |
} | |
public double getSuma() { | |
return suma; | |
} | |
@Override | |
public String toString() { | |
return "Fonduri Insuficiente, necesar: " + suma; | |
} | |
@Override | |
public String getMessage() { | |
return "Fonduri Insuficiente"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment