// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Demo
{
    public void sub2() {
        try {
            throw new Exception("2");
        } catch(Exception ex) {
            System.out.println("Regular: " + ex.getMessage());
        }
    }
    public void sub1() {
        try {
            sub2();
            throw new Exception("1");
        } catch(Exception ex) {
            System.out.println("Regular: " + ex.getMessage());
        }
    }
    public static void main(String[] args) {
        Demo o = new Demo();
        o.sub1();
    }
}
