Package io.higson.runtime.exception
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
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 Summary
ConstructorsConstructorDescriptionConstruct a new higson runtime exception with specified messagemsg.HigsonRuntimeException(String msg, Throwable cause) Construct a new higson runtime exception with specified messagemsgand underlingcause. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildMessage(String message, Throwable cause) Deprecated.Special construction of a message, that combinessuper.getMessage()with definedthis.getCause().Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HigsonRuntimeException
Construct a new higson runtime exception with specified messagemsg.- Parameters:
msg- detailed message
-
HigsonRuntimeException
Construct a new higson runtime exception with specified messagemsgand underlingcause.- Parameters:
msg- detailed messagecause- underling cause
-
-
Method Details
-
getMessage
Special construction of a message, that combinessuper.getMessage()with definedthis.getCause(). It's null safe.- Overrides:
getMessagein classThrowable- Returns:
- detailed messages with cause, if provided
-
buildMessage
Deprecated.It will be hidden in the future andstaticwill 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 nullcause- that can be null- Returns:
- full exception message
-
staticwill be removed.