---
title: "Class SdkException"
slug: "sdk--stylelabs.m.sdk.exceptions.sdkexception"
abstract: ""
---
# Class SdkException

Base class for all SDK exceptions.

## Inheritance

object

SdkException

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

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

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

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

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

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

## Namespace: StylelabsStylelabs.MSdkExceptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class SdkException : Exception
```

## Constructors

### SdkException()

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

#### Declaration

```csharp
public SdkException()
```

### SdkException(SerializationInfo, StreamingContext)

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

#### Declaration

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

#### Parameters

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

### SdkException(string, Exception)

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

#### Declaration

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

#### Parameters

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

### SdkException(string)

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

#### Declaration

```csharp
public SdkException(string message)
```

#### Parameters

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