Interface ThrowingFunctionExecutionExample

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    ThrowingFunctionExecutionExample.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.834Z")
    @Stability(Stable)
    public interface ThrowingFunctionExecutionExample
    extends software.amazon.jsii.JsiiSerializable
    Interaction descriptor for a function execution that throws an error.
    • Method Detail

      • getArguments

        @Stability(Stable)
        @NotNull
        List<Object> getArguments()
        An array of expected function arguments (or test equivalence matchers for those arguments).
      • getErrorClassName

        @Stability(Stable)
        @NotNull
        Object getErrorClassName()
        A test equivalence matcher for the class name of this exception.
      • getFunctionName

        @Stability(Stable)
        @NotNull
        String getFunctionName()
        The name of the function to be executed.

        Doubles as the handle used by registerFunction.

      • getMessage

        @Stability(Stable)
        @Nullable
        default Object getMessage()
        A test equivalence matcher for the message from this exception.

        In general, it's best to rely on the class of the exception instead of the specific error message