---
title: "Class SitecoreLayoutServiceServerException"
slug: "sitecore.layoutservice.client.exceptions.sitecorelayoutserviceserverexception"
abstract: ""
---
# Class SitecoreLayoutServiceServerException

Details an exception that may occur when the Sitecore layout service returns a server related error.

## Inheritance

System.Object

[SitecoreLayoutServiceClientException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.sitecorelayoutserviceclientexception.html)

[InvalidResponseSitecoreLayoutServiceClientException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.invalidresponsesitecorelayoutserviceclientexception.html)

SitecoreLayoutServiceServerException

### **Namespace**: Sitecore.LayoutService.Client.Exceptions

#### **Assembly**: Sitecore.LayoutService.Client.Abstractions.dll

##### Syntax

```csharp
public class SitecoreLayoutServiceServerException : InvalidResponseSitecoreLayoutServiceClientException

```

### Constructors

#### SitecoreLayoutServiceServerException()

Initializes a new instance of the [SitecoreLayoutServiceServerException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.sitecorelayoutserviceserverexception.html) class.

##### Declaration

```csharp
public SitecoreLayoutServiceServerException()

```

#### SitecoreLayoutServiceServerException(Exception)

Initializes a new instance of the [SitecoreLayoutServiceServerException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.sitecorelayoutserviceserverexception.html) class.

##### Declaration

```csharp
public SitecoreLayoutServiceServerException(Exception innerException)

```

##### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.Exception | innerException | The inner exception to be wrapped. |

#### SitecoreLayoutServiceServerException(String)

Initializes a new instance of the [SitecoreLayoutServiceServerException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.sitecorelayoutserviceserverexception.html) class.

##### Declaration

```csharp
public SitecoreLayoutServiceServerException(string message)

```

##### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | message | The exception message. |

#### SitecoreLayoutServiceServerException(String, Exception)

Initializes a new instance of the [SitecoreLayoutServiceServerException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.sitecorelayoutserviceserverexception.html) class.

##### Declaration

```csharp
public SitecoreLayoutServiceServerException(string message, Exception innerException)

```

##### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | message | The exception message. |
| System.Exception | innerException | The inner exception to be wrapped. |
