mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 21:35:49 +00:00
Branches: main
library/exception.m:
Implement exception handling predicates for Java.
java/runtime/Exception.java:
Add a helper class.
18 lines
494 B
Java
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;
|
|
}
|
|
}
|