Guest User

Untitled

a guest
Nov 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /**
  2. * Creates a new instance of <code>CarreException</code> without detail
  3. * message.
  4. */
  5. public CarreException() {
  6. System.out.println("Vous essayez de rentrer "
  7. + " un nombre négatif !");
  8. }
  9.  
  10. /**
  11. * Constructs an instance of <code>CarreException</code> with the specified
  12. * detail message.
  13. *
  14. * @param msg the detail message.
  15. */
  16. public CarreException(String msg) {
  17. // super(msg);
  18.  
  19. System.out.println("Vous essayez de rentrer "
  20. + " un nombre positif !");
  21. }
Add Comment
Please, Sign In to add comment