APIError is included in all API responses if there was an error.
| 207 | |
| 208 | // APIError is included in all API responses if there was an error. |
| 209 | type APIError struct { |
| 210 | Code int `json:"code"` |
| 211 | ErrorCode ErrorCode `json:"err_code"` |
| 212 | Description string `json:"description,omitempty"` |
| 213 | } |
| 214 | |
| 215 | // Error prints the JetStream API error code and description |
| 216 | func (e *APIError) Error() string { |
nothing calls this directly
no outgoing calls
no test coverage detected