Interface MockErrorOutput.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MockErrorOutput.Builder,MockErrorOutput>, SdkBuilder<MockErrorOutput.Builder,MockErrorOutput>, SdkPojo
Enclosing class:
MockErrorOutput

@Mutable @NotThreadSafe public static interface MockErrorOutput.Builder extends SdkPojo, CopyableBuilder<MockErrorOutput.Builder,MockErrorOutput>
  • Method Details

    • error

      A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified.

      Parameters:
      error - A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cause

      A string containing the cause of the exception thrown when executing the state's logic.

      Parameters:
      cause - A string containing the cause of the exception thrown when executing the state's logic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.