Implement exception handling predicates for Java.

Branches: main

library/exception.m:
        Implement exception handling predicates for Java.

java/runtime/Exception.java:
        Add a helper class.
This commit is contained in:
Peter Wang
2009-05-07 07:05:39 +00:00
parent 3dedf92d05
commit 2ed239c286
2 changed files with 95 additions and 39 deletions

View File

@@ -0,0 +1,17 @@
//
// Copyright (C) 2009 The University of Melbourne.
// This file may only be copied under the terms of the GNU Library General
// Public License - see the file COPYING.LIB in the Mercury distribution.
//
package mercury.runtime;
public class Exception extends java.lang.Error {
// Should be mercury.univ.Univ_0 but we don't want to depend on the
// standard library.
public Object exception;
public Exception(Object exception) {
this.exception = exception;
}
}