errors

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Check(result []uint64) error

Check examines whether the exit code matches a defined error and if so returns an error type.

func CheckCode

func CheckCode(result []uint64) uint64

CheckCode examines whether the exit code matches an defined error and if so returns the WasmError.

func GetMessage

func GetMessage(err uint64) string

GetMessage examines whether the exit code matches an defined error and if so returns the WasmError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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