# WaitCanceledException

Kind: Class · Namespace:  · Assembly: Sansar.Script.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:(global)">Namespace <a href="/scripting/api/global"><code>(global)</code></a></span>
<span>Inherits <a href="https://learn.microsoft.com/dotnet/api/system.exception">Exception</a></span>
</div>

<span id="T:WaitCanceledException"></span>

Thrown by WaitFor variants which can fail without returning data.

```csharp
public class WaitCanceledException : Exception
```

## Members at a glance

| Kind | Members |
|---|---|
| **Properties** | [Message](#message) · [Reason](#reason) |

## Properties

### Message

<div class="api-card">
<span id="P:WaitCanceledException.Message"></span>

```csharp signature
public override string Message { get; }
```

String description of the error condition.

<details class="api-remarks"><summary>Remarks</summary>

Useful for debugging.

</details>

</div>

### Reason

<div class="api-card">
<span id="P:WaitCanceledException.Reason"></span>

```csharp signature
public int Reason { get; }
```

Integer error code. The value varies depending on the method called.

<details class="api-remarks"><summary>Remarks</summary>

See the documentation for the Subscribe method for details.

</details>

</div>




<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>