Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Creates a new instance of <code>CarreException</code> without detail
- * message.
- */
- public CarreException() {
- System.out.println("Vous essayez de rentrer "
- + " un nombre négatif !");
- }
- /**
- * Constructs an instance of <code>CarreException</code> with the specified
- * detail message.
- *
- * @param msg the detail message.
- */
- public CarreException(String msg) {
- // super(msg);
- System.out.println("Vous essayez de rentrer "
- + " un nombre positif !");
- }
Add Comment
Please, Sign In to add comment