Show / Hide Table of Contents

Class ExternalApiError

Represents an error that occurs while communicating with an external, non-EasyPost API.

Inheritance
System.Object
EasyPostError
ExternalApiError
Namespace: EasyPost.Exceptions
Assembly: EasyPost.dll
Syntax
public class ExternalApiError : EasyPostError

Fields

| Improve this Doc View Source

Code

Detailed error type string.

Declaration
public readonly string? Code
Field Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

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 Source

PrettyPrint

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.

Overrides
EasyPostError.PrettyPrint
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX