public class GoogleApiException : Exception, ISerializable
Represents an exception thrown by an API Service.
Implements
ISerializableNamespace
GoogleAssembly
Google.Apis.Core.dll
Constructors
GoogleApiException(String)
public GoogleApiException(string serviceName)
Creates an API Service exception with no message.
Parameter | |
---|---|
Name | Description |
serviceName | String |
Message may still contain useful information if the Error and/or HttpStatusCode properties are set.
GoogleApiException(String, String)
public GoogleApiException(string serviceName, string message)
Creates an API Service exception.
Parameters | |
---|---|
Name | Description |
serviceName | String |
message | String |
GoogleApiException(String, String, Exception)
public GoogleApiException(string serviceName, string message, Exception inner)
Creates an API Service exception.
Parameters | |
---|---|
Name | Description |
serviceName | String |
message | String |
inner | Exception |
Properties
Error
public RequestError Error { get; set; }
The Error which was returned from the server, or null
if unavailable.
Property Value | |
---|---|
Type | Description |
RequestError |
HttpStatusCode
public HttpStatusCode HttpStatusCode { get; set; }
The HTTP status code which was returned along with this error, or 0 if unavailable.
Property Value | |
---|---|
Type | Description |
HttpStatusCode |
Message
public override string Message { get; }
Property Value | |
---|---|
Type | Description |
String |
ServiceName
public string ServiceName { get; }
Gets the service name which related to this exception.
Property Value | |
---|---|
Type | Description |
String |
Methods
ToString()
public override string ToString()
Returns a summary of this exception.
Returns | |
---|---|
Type | Description |
String | A summary of this exception. |