error

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MPL-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

type BaseError struct {
	DefaultError string
	Info         string
}

func (*BaseError) ChoseErrString

func (s *BaseError) ChoseErrString() string

func (*BaseError) Error

func (s *BaseError) Error() string

func (*BaseError) SetInfo

func (s *BaseError) SetInfo(pInfo string) IErrorBuilder

type ErrorCode

type ErrorCode string

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message,omitempty"`
}

func NewErrorResponse

func NewErrorResponse() *ErrorResponse

type IErrorBuilder

type IErrorBuilder interface {
	SetInfo(pInfo string) IErrorBuilder
	Error() string
}

type SdkError

type SdkError struct {
	Code    ErrorCode
	Message string
	Error   error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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