Class ReplicaSyncException
- Namespace
- Honua.Sdk.Offline.Abstractions
- Assembly
- Honua.Sdk.Abstractions.dll
Exception thrown when a replica sync request fails, including server-side error envelopes returned with an HTTP success status.
public sealed class ReplicaSyncException : Exception, ISerializable
- Inheritance
-
ReplicaSyncException
- Implements
- Inherited Members
Constructors
ReplicaSyncException()
Initializes a new instance of the ReplicaSyncException class.
public ReplicaSyncException()
ReplicaSyncException(string)
Initializes a new instance of the ReplicaSyncException class.
public ReplicaSyncException(string message)
Parameters
messagestringA human-readable error message.
ReplicaSyncException(string, Exception)
Initializes a new instance of the ReplicaSyncException class with an inner exception.
public ReplicaSyncException(string message, Exception innerException)
Parameters
messagestringA human-readable error message.
innerExceptionExceptionThe inner exception that caused this exception.
ReplicaSyncException(string, HttpStatusCode?, int?)
Initializes a new instance of the ReplicaSyncException class with HTTP and server error details.
public ReplicaSyncException(string message, HttpStatusCode? statusCode, int? serverErrorCode)
Parameters
messagestringA human-readable error message.
statusCodeHttpStatusCode?The HTTP status code returned by the server, if available.
serverErrorCodeint?The server-reported error code, if available.
Properties
ServerErrorCode
The server-reported error code from a GeoServices-style error envelope, if available.
public int? ServerErrorCode { get; }
Property Value
- int?
StatusCode
The HTTP status code returned by the server, if available.
public HttpStatusCode? StatusCode { get; }