Package com.hexaly.optimizer
Class HxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hexaly.optimizer.HxException
- All Implemented Interfaces:
Serializable
Hexaly exception. If an error occurred, Hexaly throws a specific
exception which contains useful info for debugging purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the error code associated to this exception.Gets the explanation about the exception.Gets the name of the Hexaly source file where the exception is thrown.Gets the name of the function where the exception is thrown.intGets the line number in the Hexaly source file where the exception is thrown.Returns a String message with all useful info about the current exception.toString()Same as getMessage().Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
getFileName
Gets the name of the Hexaly source file where the exception is thrown. Only useful for Hexaly's maintenance team.- Returns:
- File name.
-
getLineNumber
public int getLineNumber()Gets the line number in the Hexaly source file where the exception is thrown. Only useful for Hexaly's maintenance team.- Returns:
- Line number.
-
getFunctionName
Gets the name of the function where the exception is thrown.- Returns:
- Function name.
-
getExplanation
Gets the explanation about the exception.- Returns:
- Explanation.
-
getMessage
Returns a String message with all useful info about the current exception.- Overrides:
getMessagein classThrowable- Returns:
- Exception message.
-
getErrorCode
Returns the error code associated to this exception.- Returns:
- Error code.
-
toString
Same as getMessage().
-