-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy patherror.go
More file actions
39 lines (37 loc) · 2.33 KB
/
Copy patherror.go
File metadata and controls
39 lines (37 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) 2019-2026 GoRE Authors.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gore
import "errors"
var (
// ErrNotEnoughBytesRead is returned if read call returned less bytes than what is needed.
ErrNotEnoughBytesRead = errors.New("not enough bytes read")
// ErrUnsupportedFile is returned if the file process is unsupported.
ErrUnsupportedFile = errors.New("unsupported file")
// ErrSectionDoesNotExist is returned when accessing a section that does not exist.
ErrSectionDoesNotExist = errors.New("section does not exist")
// ErrNoGoVersionFound is returned if no goversion was found in the binary.
ErrNoGoVersionFound = errors.New("no goversion found")
// ErrNoPCLNTab is returned if no PCLN table can be located.
ErrNoPCLNTab = errors.New("no pclntab located")
// ErrInvalidGoVersion is returned if the go version set for the file is either invalid
// or does not match a known version by the library.
ErrInvalidGoVersion = errors.New("invalid go version")
// ErrNoGoRootFound is returned if no goroot was found in the binary.
ErrNoGoRootFound = errors.New("no goroot found")
// ErrWasmNoLinearMemory is returned if a WebAssembly module has no linear memory.
ErrWasmNoLinearMemory = errors.New("WebAssembly module has no linear memory")
// ErrWasmMemoryTooLarge is returned if reconstructing WebAssembly linear memory would exceed supported limits.
ErrWasmMemoryTooLarge = errors.New("WebAssembly minimum memory size is too large")
// ErrWasmConstExpressionMultipleValues is returned if a WebAssembly constant expression produces multiple values.
ErrWasmConstExpressionMultipleValues = errors.New("WebAssembly constant expression produces multiple values")
// ErrWasmConstExpressionNoValue is returned if a WebAssembly constant expression produces no value.
ErrWasmConstExpressionNoValue = errors.New("WebAssembly constant expression produces no value")
// ErrUnsupportedDwarf is returned when a binary format does not support DWARF data.
ErrUnsupportedDwarf = errors.New("DWARF is not supported")
// ErrNotAGPLBuild is returned for a functionality that is not supported in the BSD licensed
// version of this library. To use this functionality, compile using the build tag "gore_agpl"
// to enabled the AGPL licensed code.
ErrNotAGPLBuild = errors.New("not a AGPL build")
)