---
title: "Class PermissionException"
slug: "sdk--stylelabs.m.sdk.exceptions.permissionexception"
abstract: ""
---
# Class PermissionException

The exception that is thrown when permission problems were encountered.

## Inheritance

object

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

PermissionException

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

## Namespace: StylelabsStylelabs.MSdkExceptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class PermissionException : SdkException
```

## Constructors

### PermissionException()

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

#### Declaration

```csharp
public PermissionException()
```

### PermissionException(SerializationInfo, StreamingContext)

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

#### Declaration

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

#### Parameters

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

### PermissionException(string, Exception)

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

#### Declaration

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

#### Parameters

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

### PermissionException(string)

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

#### Declaration

```csharp
public PermissionException(string message)
```

#### Parameters

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