Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrExit uint64 = iota + 1 ErrInvalid ErrFile ErrMemoryAllocation ErrWrite ErrResourceNotFound ErrResourceNotAccessible ErrFileNotFound ErrDecodingJSON ErrDecodingYAML ErrEncodingJSON ErrEncodingYAML ErrConfig )
Variables ¶
View Source
var ( ErrExitMessage = "error encountered" ErrInvalidMessage = "invalid or missing arguments" ErrFileMessage = "could not read/write file" ErrWriteMessage = "could not write result" ErrMemoryAllocationMessage = "could not allocate memory" ErrResourceNotFoundMessage = "ocm resource not found" ErrResourceNotAccessibleMessage = "ocm resource not accessible" ErrFileNotFoundMessage = "file not found" ErrDecodingJSONMessage = "json is not valid" ErrDecodingYAMLMessage = "yaml is not valid" ErrEncodingJSONMessage = "json is not valid" ErrEncodingYAMLMessage = "yaml is not valid" ErrConfigMessage = "config is not valid" )
Functions ¶
func Check ¶
Check examines whether the exit code matches an defined error and if so returns an error type.
func CheckCode ¶
CheckCode examines whether the exit code matches an defined error and if so returns the WasmError
func GetMessage ¶
CheckCode examines whether the exit code matches an defined error and if so returns the WasmError
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.