gperror

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.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 Error

type Error interface {
	error
	GetCode() ErrorCode
	GetErr() error
}

func New

func New(errorCode ErrorCode, errorFormat string, args ...any) Error

type ErrorCode

type ErrorCode uint32

type GpError

type GpError struct {
	Err error
	ErrorCode
}

func (*GpError) Error

func (e *GpError) Error() string

func (*GpError) GetCode

func (e *GpError) GetCode() ErrorCode

func (*GpError) GetErr

func (e *GpError) GetErr() error

Jump to

Keyboard shortcuts

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