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();
}
}
}