errors

package
v0.0.0-...-69b6b67 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatusError

func NewStatusError(status int64, msg string) error

status must be [ -10000 to -99999 ] ,if status wrong will be set to -10000 as default

func PanicHandler

func PanicHandler(panic_err interface{})

to do panic_err handler :default function

func ResolveStatusError

func ResolveStatusError(err error) (int64, error)

if err is nil then return 0,nil if not an StatusError then return -1,error e.g "-10000,error found" => -10000, err("error found") e.g "this is error" => -1, err("this is error") e.g "101,this is positive err" => -1,error("101,this is positive err") e.g "-10,this is not status error" => -1,error("-10,this is not status error")

func ScheduleUploadPanic

func ScheduleUploadPanic()

Types

This section is empty.

Jump to

Keyboard shortcuts

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