<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [interactions](./case-definition-dsl.interactions.md) &gt; [functions](./case-definition-dsl.interactions.functions.md) &gt; [ThrowingFunctionExecutionExample](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.md)

## interactions.functions.ThrowingFunctionExecutionExample interface

Interaction descriptor for a function execution that throws an error

**Signature:**

```typescript
export interface ThrowingFunctionExecutionExample
```

## Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[arguments](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.arguments.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData\[\]

</td><td>

An array of expected function arguments (or test equivalence matchers for those arguments)

</td></tr>
<tr><td>

[errorClassName](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.errorclassname.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

A test equivalence matcher for the class name of this exception

</td></tr>
<tr><td>

[functionName](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.functionname.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

The name of the function to be executed. Doubles as the handle used by registerFunction.

</td></tr>
<tr><td>

[invocationName?](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.invocationname.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

_(Optional)_ A name for this specific combination of arguments - must be unique in this contract.

</td></tr>
<tr><td>

[message?](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.message.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

_(Optional)_ 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

</td></tr>
<tr><td>

[responseName?](./case-definition-dsl.interactions.functions.throwingfunctionexecutionexample.responsename.md)

</td><td>

`readonly`

</td><td>

string

</td><td>

_(Optional)_ A name for this specific exception, must be unique in this

</td></tr>
</tbody></table>
