---
title: "Class ScriptException"
slug: "sdk--stylelabs.m.sdk.exceptions.scriptexception"
abstract: ""
---
# Class ScriptException

Exception related to an unsuccessful execution of Sitecore Content Hub scripts.

## Inheritance

object

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

ScriptException

## Namespace: StylelabsStylelabs.MSdkExceptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class ScriptException : SdkException
```

## Constructors

### ScriptException()

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

#### Declaration

```csharp
public ScriptException()
```

### ScriptException(SerializationInfo, StreamingContext)

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

#### Declaration

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

#### Parameters

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

### ScriptException(string, Exception)

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

#### Declaration

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

#### Parameters

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

### ScriptException(string)

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

#### Declaration

```csharp
public ScriptException(string message)
```

#### Parameters

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