---
title: "Class NotFoundException"
slug: "sdk--stylelabs.m.sdk.exceptions.notfoundexception"
abstract: ""
---
# Class NotFoundException

The exception that is thrown when a resource could not be found.

## Inheritance

object

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

NotFoundException

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

## Namespace: StylelabsStylelabs.MSdkExceptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class NotFoundException : SdkException
```

## Constructors

### NotFoundException()

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

#### Declaration

```csharp
public NotFoundException()
```

### NotFoundException(SerializationInfo, StreamingContext)

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

#### Declaration

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

#### Parameters

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

### NotFoundException(string, Exception)

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

#### Declaration

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

#### Parameters

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

### NotFoundException(string)

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

#### Declaration

```csharp
public NotFoundException(string message)
```

#### Parameters

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