-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
26 lines (18 loc) · 869 Bytes
/
errors.go
File metadata and controls
26 lines (18 loc) · 869 Bytes
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
// Copyright (c) 2025 Boris Chu and contributors
// SPDX-License-Identifier: BSD-3-Clause
package openzl
import "errors"
var (
// ErrEmptyInput indicates that the input buffer is empty
ErrEmptyInput = errors.New("openzl: empty input")
// ErrBufferTooSmall indicates that the destination buffer is too small
ErrBufferTooSmall = errors.New("openzl: buffer too small")
// ErrCorruptedData indicates that the compressed data is corrupted
ErrCorruptedData = errors.New("openzl: corrupted data")
// ErrInvalidParameter indicates an invalid parameter was passed
ErrInvalidParameter = errors.New("openzl: invalid parameter")
// ErrContextClosed indicates that the context has been closed
ErrContextClosed = errors.New("openzl: context closed")
// ErrOutOfMemory indicates that memory allocation failed
ErrOutOfMemory = errors.New("openzl: out of memory")
)