Package org.apache.sysds.hops
Class HopsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.sysds.api.DMLException
-
- org.apache.sysds.hops.HopsException
-
- All Implemented Interfaces:
Serializable
public class HopsException extends DMLException
Exception occurring in the HOP level.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.sysds.api.DMLException
ERROR_MSG_DELIMITER
-
-
Constructor Summary
Constructors Constructor Description HopsException()
HopsException(String message)
HopsException(String message, Throwable cause)
HopsException(Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(boolean condition, String message, Object... objects)
If the condition fails, print the message formatted with objects.static void
check(boolean condition, Hop hop, String message, Object... objects)
If the condition fails, print the Op and its Id, along with the message formatted with objects.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
check
public static void check(boolean condition, String message, Object... objects)
If the condition fails, print the message formatted with objects.- Parameters:
condition
- Condition to testmessage
- Message to print if the condition failsobjects
- Objects to print with the message, as per String.format
-
check
public static void check(boolean condition, Hop hop, String message, Object... objects)
If the condition fails, print the Op and its Id, along with the message formatted with objects.- Parameters:
condition
- Condition to testhop
- Hop to print as a cause of the problem, if the condition failsmessage
- Message to print if the condition failsobjects
- Objects to print with the message, as per String.format
-
-