{"modulePath":"github.com/open-component-model/ocm-controller","version":"v0.25.4","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tErrExit uint64 = iota + 1\n\tErrInvalid\n\tErrFile\n\tErrMemoryAllocation\n\tErrWrite\n\tErrResourceNotFound\n\tErrResourceNotAccessible\n\tErrFileNotFound\n\tErrDecodingJSON\n\tErrDecodingYAML\n\tErrEncodingJSON\n\tErrEncodingYAML\n\tErrConfig\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrExitMessage                  = \"error encountered\"\n\tErrInvalidMessage               = \"invalid or missing arguments\"\n\tErrFileMessage                  = \"could not read/write file\"\n\tErrWriteMessage                 = \"could not write result\"\n\tErrMemoryAllocationMessage      = \"could not allocate memory\"\n\tErrResourceNotFoundMessage      = \"ocm resource not found\"\n\tErrResourceNotAccessibleMessage = \"ocm resource not accessible\"\n\tErrFileNotFoundMessage          = \"file not found\"\n\tErrDecodingJSONMessage          = \"json is not valid\"\n\tErrDecodingYAMLMessage          = \"yaml is not valid\"\n\tErrEncodingJSONMessage          = \"json is not valid\"\n\tErrEncodingYAMLMessage          = \"yaml is not valid\"\n\tErrConfigMessage                = \"config is not valid\"\n)\n```\n\n## Functions\n\n```go\nfunc Check(result []uint64) error\n```\nCheck examines whether the exit code matches a defined error and if so returns an error type.\n\n```go\nfunc CheckCode(result []uint64) uint64\n```\nCheckCode examines whether the exit code matches an defined error and if so returns the WasmError.\n\n```go\nfunc GetMessage(err uint64) string\n```\nGetMessage examines whether the exit code matches an defined error and if so returns the WasmError.\n\n","path":"github.com/open-component-model/ocm-controller/pkg/wasm/errors","name":"errors","synopsis":"","isRedistributable":true}
