Class ZipApiException
An exception thrown by ZipClient when an error response is received from the Zip API.
Implements
Inherited Members
Namespace: Yort.Zip.InStore
Assembly: Yort.Zip.InStore.dll
Syntax
[Serializable]
public class ZipApiException : Exception, ISerializable
Constructors
| Improve this Doc View SourceZipApiException()
Default constructor. Not recommended for use.
Declaration
public ZipApiException()
ZipApiException(SerializationInfo, StreamingContext)
Deserialisation constructor.
Declaration
protected ZipApiException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialisation information to deserialise from. |
StreamingContext | context | The streaming context to deserialise from. |
ZipApiException(String)
Partial constructor. Not recommended for use.
Declaration
public ZipApiException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message of the exception. |
ZipApiException(String, Exception)
Partial constructor. Not recommended for use.
Declaration
public ZipApiException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message for this exception. |
Exception | inner | Another exception being wrapped by this one. |
ZipApiException(ZipErrorResponse)
Partial constructor, recommended.
Declaration
public ZipApiException(ZipErrorResponse error)
Parameters
Type | Name | Description |
---|---|---|
ZipErrorResponse | error | A ZipErrorResponse containing full errors received from the Zip API. |
ZipApiException(ZipErrorResponse, Exception)
Full constructor, recommended.
Declaration
public ZipApiException(ZipErrorResponse error, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
ZipErrorResponse | error | A ZipErrorResponse containing full errors received from the Zip API. |
Exception | inner | Another exception being wrapped by this one. |
Properties
| Improve this Doc View SourceErrors
Returns a ZipErrorResponse instance containing details of the full set of errors, or null if no response content was provided by the Zip API.
Declaration
public ZipErrorResponse Errors { get; }
Property Value
Type | Description |
---|---|
ZipErrorResponse |