systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deron Eriksson <>
Subject DMLRuntimeException
Date Mon, 29 Feb 2016 21:47:02 GMT

Can we change DMLRuntimeException to extend RuntimeException rather than

1) The javadocs say DMLRuntimeException is equivalent to RuntimeException.
RuntimeException is an uncaught exception.
2) However, DMLRuntimeException extends DMLException which extends
Exception which is a caught exception.

So, this means that currently DMLRuntimeException in this example needs a
throws clause on the method (or the throw needs to be wrapped in a

public void example() throws DMLRuntimeException {
throw new DMLRuntimeException("Example");
If it's a RuntimeException, it should really be:

public void example() {
throw new DMLRuntimeException("Example");


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message