---
title: "Class InvalidResponseSitecoreLayoutServiceClientException"
slug: "sitecore.layoutservice.client.exceptions.invalidresponsesitecorelayoutserviceclientexception"
abstract: ""
---
# Class InvalidResponseSitecoreLayoutServiceClientException

Details an exception that may occur when the Sitecore layout service returns an invalid response.

## 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

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

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

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

##### Syntax

```csharp
public class InvalidResponseSitecoreLayoutServiceClientException : SitecoreLayoutServiceClientException

```

### Constructors

#### InvalidResponseSitecoreLayoutServiceClientException()

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

##### Declaration

```csharp
public InvalidResponseSitecoreLayoutServiceClientException()

```

#### InvalidResponseSitecoreLayoutServiceClientException(Exception)

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

##### Declaration

```csharp
public InvalidResponseSitecoreLayoutServiceClientException(Exception innerException)

```

##### Parameters

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

#### InvalidResponseSitecoreLayoutServiceClientException(String)

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

##### Declaration

```csharp
public InvalidResponseSitecoreLayoutServiceClientException(string message)

```

##### Parameters

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

#### InvalidResponseSitecoreLayoutServiceClientException(String, Exception)

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

##### Declaration

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

```

##### Parameters

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