Class ServiceException
A Service Error was returned by a service.
Implements
Inherited Members
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
[Serializable]
public class ServiceException : Exception, ISerializable
Constructors
ServiceException()
Default constructor.
Declaration
protected ServiceException()
ServiceException(SerializationInfo, StreamingContext)
Creates and returns a ServiceException from the provided serialization info and streaming context.
Declaration
protected ServiceException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info. |
StreamingContext | context | the streaming context. |
ServiceException(string)
Creates and returns a ServiceException from the provided error message.
Declaration
public ServiceException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The exception message. |
ServiceException(string, Exception)
Creates and returns a ServiceException from the provided error message and inner exception.
Declaration
public ServiceException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The exception message. |
Exception | innerException | The inner exception. |
Properties
Detail
The service error detail.
Declaration
public string Detail { get; }
Property Value
Type | Description |
---|---|
string |
Details
An array of additional error m_Details.
Declaration
public IEnumerable<string> Details { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
ErrorCode
The service error code.
Declaration
public ServiceErrorCode ErrorCode { get; }
Property Value
Type | Description |
---|---|
ServiceErrorCode |
RequestId
The ID of the failed request.
Declaration
public string RequestId { get; }
Property Value
Type | Description |
---|---|
string |
StatusCode
The service error HTTP status code.
Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode? |
Title
The service error title.
Declaration
public string Title { get; }
Property Value
Type | Description |
---|---|
string |
Type
The service error type.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |