Files
mercury/java/runtime/Exception.java
Peter Wang 2ed239c286 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.
2009-05-07 07:05:39 +00:00

18 lines
494 B
Java

//
// 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;
}
}