---
title: "Class InternalException"
slug: "sdk--stylelabs.m.sdk.exceptions.internalexception"
abstract: ""
---
# Class InternalException

The exception that is thrown when an internal problem was detected. This should never be thrown, and most likely means there's a bug.

## Inheritance

object

[SdkException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.sdkexception.html)

InternalException

## Namespace: StylelabsStylelabs.MSdkExceptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class InternalException : SdkException
```

## Constructors

### InternalException()

Initializes a new instance of the [InternalException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.internalexception.html) class.

#### Declaration

```csharp
public InternalException()
```

### InternalException(SerializationInfo, StreamingContext)

Initializes a new instance of the [InternalException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.internalexception.html) class.

#### Declaration

```csharp
protected InternalException(SerializationInfo serializationInfo, StreamingContext streamingContext)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| SerializationInfo | serializationInfo | The serialization info. |
| StreamingContext | streamingContext | The streaming context. |

### InternalException(string, Exception)

Initializes a new instance of the [InternalException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.internalexception.html) class.

#### Declaration

```csharp
public InternalException(string message, Exception exception)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | message | The message. |
| Exception | exception | The exception. |

### InternalException(string)

Initializes a new instance of the [InternalException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.internalexception.html) class.

#### Declaration

```csharp
public InternalException(string message)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | message | The message. |
