Documentation
¶
Overview ¶
Package errors handles multiple errors that can be returned from the Tradier API
Example:
{ "errors": { "error": [ "Backoffice rejected override of the order.", "InitialMargin" ] } }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
type Errors struct {
Err []error `json:"error"`
}
Errors hold a collection of errors returned by a response.
func (*Errors) AppendStrings ¶
AppendStrings appends a slice of strings to *Errors.Err.
func (*Errors) MarshalJSON ¶
MarshalJSON marshals Errors into its JSON representation.
func (*Errors) UnmarshalJSON ¶
UnmarshalJSON unmarshals errors into Errors object.
Click to show internal directories.
Click to hide internal directories.