Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Code for error // UnknownCode is unknown code for error info. UnknownCode = 500 NoError = 0 ServerError = 499 ParamError = 400 // UnknownReason is unknown reason for error info. UnknownReason = "" )
View Source
const ( ErrFileNotFound = "file '%s' not found" ErrFileAlreadyExists = "file '%s' already exists" ErrTemplateNotFound = "template '%s' not found" ErrBaseDirectoryNotFound = "base directory '%s' not found" ErrDirectoryNotFound = "directory '%s' not found" ErrScriptNotFound = "script '%s' not found" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code int32 `json:"code,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.