wrapper

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by server_generator. DO NOT EDIT. generated version: devel

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Status int         `json:"status"`
	Body   interface{} `json:"body"`
	// contains filtered or unexported fields
}

APIError - API Error

func NewAPIError

func NewAPIError(status int, bodies ...interface{}) *APIError

NewAPIError - constructor

func (*APIError) Error

func (ae *APIError) Error() string

Error - makes it compatible with `error` interface.

func (*APIError) SetError

func (ae *APIError) SetError(err error) *APIError

SetError - sets error to APIError.err

func (*APIError) SetErrorf

func (ae *APIError) SetErrorf(format string, a ...interface{}) *APIError

SetErrorf - sets error to APIError.err (use `%w` to wrap the error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL