MCPcopy
hub / github.com/nirui/sshwifty / NewError

Function NewError

application/controller/error.go:29–34  ·  view source on GitHub ↗

NewError creates a new Error

(code int, message string)

Source from the content-addressed store, hash-verified

27
28// NewError creates a new Error
29func NewError(code int, message string) Error {
30 return Error{
31 code: code,
32 message: message,
33 }
34}
35
36// Code return the error code
37func (f Error) Code() int {

Callers 7

base.goFile · 0.85
controller.goFile · 0.85
ServeHTTPMethod · 0.85
socket.goFile · 0.85
HeadMethod · 0.85
buildWSFetcherMethod · 0.85
GetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected