vuls: github.com/future-architect/vuls/errof Index | Files

package errof

import "github.com/future-architect/vuls/errof"

Index

Package Files

errof.go

type Error Uses

type Error struct {
    Code    ErrorCode
    Message string
}

Error is vuls error

func New Uses

func New(code ErrorCode, msg string) Error

New :

func (Error) Error Uses

func (e Error) Error() string

type ErrorCode Uses

type ErrorCode string

ErrorCode is vuls error code

var (
    // ErrFailedToAccessGithubAPI is error of github alert's api access
    ErrFailedToAccessGithubAPI ErrorCode = "ErrFailedToAccessGithubAPI"
)

Package errof is imported by 2 packages. Updated 2019-06-12. Refresh now. Tools for package owners.