Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

errors.gno

0.46 Kb · 17 lines
 1package halt
 2
 3import (
 4	ufmt "gno.land/p/nt/ufmt/v0"
 5)
 6
 7const (
 8	errHalted           = "halted"
 9	errInvalidOpType    = "invalid operation type"
10	errInvalidHaltLevel = "invalid halt level"
11	errOpTypeNotFound   = "operation type not found in config"
12)
13
14// makeErrorWithDetails creates an error with additional details appended to the base error message.
15func makeErrorWithDetails(message string, details string) error {
16	return ufmt.Errorf("%s: %s", message, details)
17}