<!-- 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; [WillReceiveFunctionCallAndThrow](./case-definition-dsl.interactions.functions.willreceivefunctioncallandthrow.md)

## interactions.functions.WillReceiveFunctionCallAndThrow class

Defines an example that expects a function to be called with specific arguments

**Signature:**

```typescript
export declare class WillReceiveFunctionCallAndThrow extends AnyInteractionDescriptor
```

**Extends:** [AnyInteractionDescriptor](./case-definition-dsl.interactions.base.anyinteractiondescriptor.md)

## Constructors

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

Constructor

</th><th>

Modifiers

</th><th>

Description

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

[(constructor)(example)](./case-definition-dsl.interactions.functions.willreceivefunctioncallandthrow._constructor_.md)

</td><td>

</td><td>

Defines an example that expects a function to be called with specific arguments

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

## Properties

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

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

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

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

</td><td>

`readonly`

</td><td>

string

</td><td>

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

[request](./case-definition-dsl.interactions.functions.willreceivefunctioncallandthrow.request.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

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

[response](./case-definition-dsl.interactions.functions.willreceivefunctioncallandthrow.response.md)

</td><td>

`readonly`

</td><td>

AnyMatcherOrData

</td><td>

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