error

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientError

type ClientError struct {
	// contains filtered or unexported fields
}

ClientError is used when ClientService has errors. It implements the Error interface.

func NewClientError

func NewClientError(statusCode statuscode.StatusCode, message string) ClientError

NewClientError creates the client error instance.

func (ClientError) Error

func (e ClientError) Error() string

Error just returns the error message.

func (ClientError) StatusCode

func (e ClientError) StatusCode() statuscode.StatusCode

StatusCode returns the status code that represents the type of errors.

Jump to

Keyboard shortcuts

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