{"modulePath":"github.com/devdraftengineer/devdraft-go","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package apierror\n\n## Types\n\n```go\ntype Error struct {\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n\tStatusCode int\n\tRequest    *http.Request\n\tResponse   *http.Response\n}\n```\nError represents an error that originates from the API, i.e. when a request is made and the API returns a response with a HTTP status code. Other errors are not wrapped by this SDK.\n\n```go\nfunc (r *Error) DumpRequest(body bool) []byte\n```\n\n```go\nfunc (r *Error) DumpResponse(body bool) []byte\n```\n\n```go\nfunc (r *Error) Error() string\n```\n\n```go\nfunc (r Error) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *Error) UnmarshalJSON(data []byte) error\n```\n\n","path":"github.com/devdraftengineer/devdraft-go/internal/apierror","name":"apierror","synopsis":"","isRedistributable":true}
