Class ExternalApiError
Represents an error that occurs while communicating with an external, non-EasyPost API.
Namespace: EasyPost.Exceptions
Assembly: EasyPost.dll
Syntax
public class ExternalApiError : EasyPostError
Fields
| Improve this Doc View SourceCode
Detailed error type string.
Declaration
public readonly string? Code
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.String> |
StatusCode
Status code of the HTTP response that caused the error.
Declaration
public readonly int? StatusCode
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Properties
| Improve this Doc View SourcePrettyPrint
Get a formatted error string with expanded details about the API error.
Declaration
public override string PrettyPrint { get; }
Property Value
| Type | Description |
|---|---|
| System.String | A formatted error string. |