Class ServerException
ServerException is thrown if the analytics server has received the request but did not process the request due to some error. For example if authorization fails.
Inheritance
System.Object
ServerException
Namespace: ZohoAnalytics
Assembly: ZohoAnalytics.dll
Syntax
public sealed class ServerException : Exception
Constructors
ServerException(Int32, Int32, String)
Declaration
public ServerException(int httpStatusCode, int errorCode, string errorMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | httpStatusCode | |
| System.Int32 | errorCode | |
| System.String | errorMessage |
Methods
GetErrorCode()
Gets the error code.
Declaration
public int GetErrorCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | The error code. |
GetErrorMessage()
Gets the error message.
Declaration
public string GetErrorMessage()
Returns
| Type | Description |
|---|---|
| System.String | The error message. |
GetHTTPStatusCode()
Gets the HTTP status code.
Declaration
public int GetHTTPStatusCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | The HTTP status code. |