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

public class CitrusRuntimeException extends RuntimeException
Basic custom runtime exception for all errors in Citrus
Author:
Christoph Deppisch
See Also:
  • Constructor Details

    • 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 -
    • CitrusRuntimeException

      public CitrusRuntimeException(String message, Throwable cause)
      Constructor using fields.
      Parameters:
      message -
      cause -
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • 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