This is an automated email from the ASF dual-hosted git repository. baunsgaard pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push: new 952354b493 [MINOR] DML script Exception API reduction 952354b493 is described below commit 952354b493b5f61f23982551b6bd780e55c70d6f Author: Sebastian Baunsgaard <baunsga...@apache.org> AuthorDate: Wed Aug 28 16:54:09 2024 +0200 [MINOR] DML script Exception API reduction --- .../apache/sysds/runtime/DMLScriptException.java | 26 +++++++++------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/main/java/org/apache/sysds/runtime/DMLScriptException.java b/src/main/java/org/apache/sysds/runtime/DMLScriptException.java index 9cf394d214..816e88c820 100644 --- a/src/main/java/org/apache/sysds/runtime/DMLScriptException.java +++ b/src/main/java/org/apache/sysds/runtime/DMLScriptException.java @@ -19,26 +19,20 @@ package org.apache.sysds.runtime; - /** - * This exception should be thrown to flag DML Script errors. + * This exception should be thrown to flag DML Script errors, this exception is reserved for the stop instruction and + * script related errors that an end-user should be able to address + * */ -public class DMLScriptException extends DMLRuntimeException -{ - - private static final long serialVersionUID = 1L; +public class DMLScriptException extends DMLRuntimeException { + private static final long serialVersionUID = 2L; - //prevent string concatenation of classname w/ stop message - private DMLScriptException(Exception e) { - super(e); - } - - private DMLScriptException(String string, Exception ex){ - super(string,ex); - } - /** - * This is the only valid constructor for DMLScriptException. + * Construct a DML script exception, this exception is reserved for the stop instruction and script related errors + * that an end-user should be able to address + * + * The DMLScrip exception is intended not to be able to throw other exceptions on. Therefore, there is only one + * constructor. * * @param msg message */