Package com.consol.citrus.exceptions
Class CitrusRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.consol.citrus.exceptions.CitrusRuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActionTimeoutException,InvalidFunctionUsageException,MissingExpectedMessageException,NoSuchFunctionException,NoSuchFunctionLibraryException,NoSuchMessageValidatorException,NoSuchValidationMatcherException,NoSuchValidationMatcherLibraryException,NoSuchVariableException,ParallelContainerException,TestCaseFailedException,UnknownElementException,ValidationException,VariableNullValueException
public class CitrusRuntimeException extends RuntimeException
Basic custom runtime exception for all errors in Citrus- Author:
- Christoph Deppisch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CitrusRuntimeException()Default constructor.CitrusRuntimeException(String message)Constructor using fields.CitrusRuntimeException(String message, Throwable cause)Constructor using fields.CitrusRuntimeException(Throwable cause)Constructor using fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stack<FailureStackElement>getFailureStack()Gets the custom failure stack with line number information where the testcase failed.StringgetFailureStackAsString()Get formatted string representation of failure stack information.StringgetMessage()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 Detail
-
CitrusRuntimeException
public CitrusRuntimeException()
Default constructor.
-
CitrusRuntimeException
public CitrusRuntimeException(String message)
Constructor using fields.- Parameters:
message-
-
CitrusRuntimeException
public CitrusRuntimeException(Throwable cause)
Constructor using fields.- Parameters:
cause-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getFailureStackAsString
public String getFailureStackAsString()
Get formatted string representation of failure stack information.- Returns:
-
setFailureStack
public void setFailureStack(List<FailureStackElement> failureStack)
Sets the custom failure stack holding line number information inside test case.- Parameters:
failureStack-
-
getFailureStack
public Stack<FailureStackElement> getFailureStack()
Gets the custom failure stack with line number information where the testcase failed.- Returns:
- the failureStack
-
-