Class HigsonRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.higson.runtime.exception.HigsonRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AmbiguousProfileException, BadJdbcUrlStructureException, HigsonIllegalStateException, ImportException, InvalidBetweenMatcherPatternException, InvalidFunctionArgumentDataTypeException, InvalidFunctionArgumentsNumberException, InvalidFunctionCascadeRef, InvalidInputLevelsSizeRuntimeException, InvalidParameterCascadeRef, MissingActiveVersionException, MissingFunctionAttributeException, NotEqualDialectsException, NotProvidedStringValueException, NotRecognizedDialectException, RuntimeSortConfigException, UnrecognizedDialectException

public class HigsonRuntimeException extends RuntimeException
Root of the hierarchy of all Higson exceptions. All Higson specific exceptions should derived from this class. By default all messages defined with this exception or it's subtypes will have not only messages but also nested cause of an exception.
Author:
przemek hertel
See Also:
  • Constructor Details

    • HigsonRuntimeException

      public HigsonRuntimeException(String msg)
      Construct a new higson runtime exception with specified message msg.
      Parameters:
      msg - detailed message
    • HigsonRuntimeException

      public HigsonRuntimeException(String msg, Throwable cause)
      Construct a new higson runtime exception with specified message msg and underling cause.
      Parameters:
      msg - detailed message
      cause - underling cause
  • Method Details

    • getMessage

      public String getMessage()
      Special construction of a message, that combines super.getMessage() with defined this.getCause(). It's null safe.
      Overrides:
      getMessage in class Throwable
      Returns:
      detailed messages with cause, if provided
    • buildMessage

      @Deprecated public static String buildMessage(String message, Throwable cause)
      Deprecated.
      It will be hidden in the future and static will be removed. This should be used only by higson.
      Build a message for the given base message and root cause.
      Parameters:
      message - that can be null
      cause - that can be null
      Returns:
      full exception message