errof

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: AGPL-3.0 Imports: 0 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 struct {
	Code    ErrorCode
	Message string
}

Error is vuls error

func New

func New(code ErrorCode, msg string) Error

New :

func (Error) Error

func (e Error) Error() string

type ErrorCode

type ErrorCode string

ErrorCode is vuls error code

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

	// ErrFailedToAccessWpScan is error of wpscan.com api access
	ErrFailedToAccessWpScan ErrorCode = "ErrFailedToAccessWpScan"

	// ErrWpScanAPILimitExceeded is error of wpscan.com api limit exceeded
	ErrWpScanAPILimitExceeded ErrorCode = "ErrWpScanAPILimitExceeded"
)

Jump to

Keyboard shortcuts

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