Package localsolver
Class LSException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- localsolver.LSException
-
- All Implemented Interfaces:
java.io.Serializable
public class LSException extends java.lang.RuntimeExceptionLocalSolver exception. If an error occurred, LocalSolver 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 LSErrorCodegetErrorCode()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 LocalSolver 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 LocalSolver 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 LocalSolver source file where the exception is thrown. Only useful for LocalSolver's maintenance team.- Returns:
- File name.
-
getLineNumber
public int getLineNumber()
Gets the line number in the LocalSolver source file where the exception is thrown. Only useful for LocalSolver'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 LSErrorCode 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
-
-