Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Exemple des Methodes de la Classe Exception.


{filelink=4356}

 public class MethodesException {
 
  public static void main(String[] args) {
    try {
      throw new Exception("Mes Exceptions");
    } catch (Exception e) {
	  System.err.println("M�thode getMessage():" + e.getMessage());
      System.err.println("Attraper l'Exception");
      System.err.println("M�thode getLocalizedMessage():"+ e.getLocalizedMessage());
      System.err.println("M�thode toString():" + e);
      System.err.println("M�thode printStackTrace():"); e.printStackTrace();
    }
  }
}