mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
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:
17
java/runtime/Exception.java
Normal file
17
java/runtime/Exception.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user