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:
java.io.Serializable
public class HxException extends java.lang.RuntimeExceptionHexaly exception. If an error occurred, Hexaly throws a specific exception which contains useful info for debugging purposes.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HxErrorCodegetErrorCode()Returns the error code associated to this exception.java.lang.StringgetExplanation()Gets the explanation about the exception.java.lang.StringgetFileName()Gets the name of the Hexaly source file where the exception is thrown.java.lang.StringgetFunctionName()Gets the name of the function where the exception is thrown.intgetLineNumber()Gets the line number in the Hexaly source file where the exception is thrown.java.lang.StringgetMessage()Returns a String message with all useful info about the current exception.java.lang.StringtoString()Same as getMessage().
-
-
-
Method Detail
-
getFileName
public java.lang.String 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
public java.lang.String getFunctionName()
Gets the name of the function where the exception is thrown.- Returns:
- Function name.
-
getExplanation
public java.lang.String getExplanation()
Gets the explanation about the exception.- Returns:
- Explanation.
-
getMessage
public java.lang.String getMessage()
Returns a String message with all useful info about the current exception.- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- Exception message.
-
getErrorCode
public HxErrorCode getErrorCode()
Returns the error code associated to this exception.- Returns:
- Error code.
-
toString
public java.lang.String toString()
Same as getMessage().- Overrides:
toStringin classjava.lang.Throwable
-
-