ex

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//CodeFileErr 文件错误
	CodeFile = 100000000000
	// 文件不存在
	CodeFileNotExist = 1000040010001
)

Variables

This section is empty.

Functions

func Check

func Check(err error)

Types

type ErrMsg

type ErrMsg struct {
	Desc string
	Code int
}

type Error

type Error interface {
	Arg(args ...interface{}) error
	Error() string
	MarshalJSON() ([]byte, error)
}
var FileErr Error = FileError{/* contains filtered or unexported fields */}
var FileExistErr Error = FileExist{/* contains filtered or unexported fields */}
var FileNotExistErr Error = FileNotExist{/* contains filtered or unexported fields */}

type FileError

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

func (FileError) Arg

func (e FileError) Arg(args ...interface{}) error

func (FileError) Error

func (e FileError) Error() string

func (FileError) MarshalJSON

func (e FileError) MarshalJSON() ([]byte, error)

type FileExist

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

FileNotExist 文件不存在

func (FileExist) Arg

func (e FileExist) Arg(args ...interface{}) error

func (FileExist) Error

func (e FileExist) Error() string

func (FileExist) MarshalJSON

func (e FileExist) MarshalJSON() ([]byte, error)

type FileNotExist

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

FileNotExist 文件不存在

func (FileNotExist) Arg

func (e FileNotExist) Arg(args ...interface{}) error

func (FileNotExist) Error

func (e FileNotExist) Error() string

func (FileNotExist) MarshalJSON

func (e FileNotExist) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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