Class HxException

All Implemented Interfaces:
Serializable

public class HxException extends RuntimeException
Hexaly exception. If an error occurred, Hexaly throws a specific exception which contains useful info for debugging purposes.
See Also:
  • Method Details

    • getFileName

      public 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 String getFunctionName()
      Gets the name of the function where the exception is thrown.
      Returns:
      Function name.
    • getExplanation

      public String getExplanation()
      Gets the explanation about the exception.
      Returns:
      Explanation.
    • getMessage

      public String getMessage()
      Returns a String message with all useful info about the current exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      Exception message.
    • getErrorCode

      public HxErrorCode getErrorCode()
      Returns the error code associated to this exception.
      Returns:
      Error code.
    • toString

      public String toString()
      Same as getMessage().
      Overrides:
      toString in class Throwable