> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class OpenTDException

Namespace: [OpenTD](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD)\
Assembly: OpenTD.dll

General exception thrown by OpenTD.

```csharp theme={null}
[Serializable]
public class OpenTDException : Exception, ISerializable, _Exception
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Exception](https://learn.microsoft.com/dotnet/api/system.exception) ←
[OpenTDException](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.OpenTDException.md)

#### Derived

[BadDataException](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.BadDataException.md)

## Implements

[ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable),
[\_Exception](https://learn.microsoft.com/dotnet/api/system.runtime.interopservices._exception)

## Inherited Members

[Exception.GetBaseException()](https://learn.microsoft.com/dotnet/api/system.exception.getbaseexception),
[Exception.ToString()](https://learn.microsoft.com/dotnet/api/system.exception.tostring),
[Exception.GetObjectData(SerializationInfo, StreamingContext)](https://learn.microsoft.com/dotnet/api/system.exception.getobjectdata),
[Exception.GetType()](https://learn.microsoft.com/dotnet/api/system.exception.gettype),
[Exception.Message](https://learn.microsoft.com/dotnet/api/system.exception.message),
[Exception.Data](https://learn.microsoft.com/dotnet/api/system.exception.data),
[Exception.InnerException](https://learn.microsoft.com/dotnet/api/system.exception.innerexception),
[Exception.TargetSite](https://learn.microsoft.com/dotnet/api/system.exception.targetsite),
[Exception.StackTrace](https://learn.microsoft.com/dotnet/api/system.exception.stacktrace),
[Exception.HelpLink](https://learn.microsoft.com/dotnet/api/system.exception.helplink),
[Exception.Source](https://learn.microsoft.com/dotnet/api/system.exception.source),
[Exception.HResult](https://learn.microsoft.com/dotnet/api/system.exception.hresult),
[Exception.SerializeObjectState](https://learn.microsoft.com/dotnet/api/system.exception.serializeobjectstate),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### OpenTDException(StatusData)

```csharp theme={null}
public OpenTDException(StatusData x)
```

#### Parameters

`x` [StatusData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Internal.Communication.StatusData.md)

### OpenTDException(string)

```csharp theme={null}
public OpenTDException(string msg)
```

#### Parameters

`msg` [string](https://learn.microsoft.com/dotnet/api/system.string)

### OpenTDException(string, Exception)

```csharp theme={null}
public OpenTDException(string msg, Exception innerException)
```

#### Parameters

`msg` [string](https://learn.microsoft.com/dotnet/api/system.string)

`innerException` [Exception](https://learn.microsoft.com/dotnet/api/system.exception)

## Fields

### statusData

```csharp theme={null}
public StatusData statusData
```

#### Field Value

[StatusData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Internal.Communication.StatusData.md)

## Methods

### Show()

```csharp theme={null}
public void Show()
```

## See Also

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)
