-
Notifications
You must be signed in to change notification settings - Fork 12
/
errors.go
23 lines (16 loc) · 1.1 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package fuego
// PanicMissingChannel signifies that the Stream is missing a channel.
const PanicMissingChannel = "stream requires a channel"
// PanicNoSuchElement signifies that the requested element is not present.
// Examples: when the Stream is empty, or when an Optional does not have a value.
const PanicNoSuchElement = "no such element"
// PanicCollectorMissingSupplier signifies that the Supplier of a Collector was not provided.
const PanicCollectorMissingSupplier = "collector missing supplier"
// PanicCollectorMissingAccumulator signifies that the accumulator of a Collector was not provided.
const PanicCollectorMissingAccumulator = "collector missing accumulator"
// PanicCollectorMissingFinisher signifies that the Finisher of a Collector was not provided.
const PanicCollectorMissingFinisher = "collector missing finisher"
// PanicNilNotPermitted signifies that the `nil` value is not allowed in the context.
const PanicNilNotPermitted = "nil not permitted"
// PanicDuplicateKey signifies that an attempt was made to duplicate a key in a container (such as a map).
const PanicDuplicateKey = "duplicate key"