FileDocCategorySizeDatePackage
ExceptionMethods.javaAPI DocExample2872Mon Apr 06 18:10:24 BST 1998c09

ExceptionMethods

public class ExceptionMethods extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    try {
      throw new Exception("Here's my Exception");
    } catch(Exception e) {
      System.out.println("Caught Exception");
      System.out.println(
        "e.getMessage(): " + e.getMessage());
      System.out.println(
        "e.toString(): " + e.toString());
      System.out.println("e.printStackTrace():");
      e.printStackTrace();
    }