## AsposeBadServerResponceException class

The exception that is thrown when a server returns a response the client cannot process.

```csharp
public class AsposeBadServerResponceException : AsposeException
```

## Constructors

| Name | Description |
| --- | --- |
| [AsposeBadServerResponceException](asposebadserverresponceexception/#constructor)() | Initializes a new instance of the `AsposeBadServerResponceException` class. |
| [AsposeBadServerResponceException](asposebadserverresponceexception/#constructor_1)(Exception) | Initializes a new instance of the `AsposeBadServerResponceException` class with a reference to the exception that caused it. |
| [AsposeBadServerResponceException](asposebadserverresponceexception/#constructor_2)(string) | Initializes a new instance of the `AsposeBadServerResponceException` class with the specified error message. |
| [AsposeBadServerResponceException](asposebadserverresponceexception/#constructor_3)(string, Exception) | Initializes a new instance of the `AsposeBadServerResponceException` class with the specified error message and a reference to the exception that caused it. |

## Properties

| Name | Description |
| --- | --- |
| [ErrorCode](../../aspose.email/asposebadserverresponceexception/errorcode/) { get; } | Gets the error code reported by the server. |
| [ErrorDetails](../../aspose.email/asposeexception/errordetails/) { get; } | Gets additional information about the error, if the operation provides any. |
| override [Message](../../aspose.email/asposeexception/message/) { get; } | Gets the message that describes the error. |

## Methods

| Name | Description |
| --- | --- |
| override [ToString](../../aspose.email/asposeexception/tostring/)() | Returns the type, the message and the stack trace of the exception. |

### See Also

* class [AsposeException](../asposeexception/)
* namespace [Aspose.Email](../../aspose.email/)
* assembly [Aspose.Email](../../)


