Package org.citrusframework.exceptions
Class CitrusRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.citrusframework.exceptions.CitrusRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActionTimeoutException,InvalidFunctionUsageException,MissingExpectedMessageException,NoSuchFunctionException,NoSuchFunctionLibraryException,NoSuchMessageValidatorException,NoSuchValidationMatcherException,NoSuchValidationMatcherLibraryException,NoSuchVariableException,ParallelContainerException,TestCaseFailedException,UnknownElementException,ValidationException,VariableNullValueException
Basic custom runtime exception for all errors in Citrus
- Author:
- Christoph Deppisch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CitrusRuntimeException(String message) Constructor using fields.CitrusRuntimeException(String message, Throwable cause) Constructor using fields.CitrusRuntimeException(Throwable cause) Constructor using fields. -
Method Summary
Modifier and TypeMethodDescriptionGets the custom failure stack with line number information where the testcase failed.Get formatted string representation of failure stack information.voidsetFailureStack(List<FailureStackElement> failureStack) Sets the custom failure stack holding line number information inside test case.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CitrusRuntimeException
public CitrusRuntimeException()Default constructor. -
CitrusRuntimeException
Constructor using fields.- Parameters:
message-
-
CitrusRuntimeException
Constructor using fields.- Parameters:
cause-
-
CitrusRuntimeException
Constructor using fields.- Parameters:
message-cause-
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getFailureStackAsString
Get formatted string representation of failure stack information.- Returns:
-
setFailureStack
Sets the custom failure stack holding line number information inside test case.- Parameters:
failureStack-
-
getFailureStack
Gets the custom failure stack with line number information where the testcase failed.- Returns:
- the failureStack
-