PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/nt/combinederr/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
nt / combinederr
Files
4 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/nt/combinederr/v0
gno
0.9

Files (4)

  • README.mdmarkdown
  • gnomod.tomltoml
  • combinederr.gnogno
  • doc.gnogno
combinederr.gnogno
1package combinederr23import "strings"45// CombinedError is a combined execution error6type CombinedError struct {7	errors []error8}910// Error returns the combined execution error11func (e *CombinedError) Error() string {12	if len(e.errors) == 0 {13		return ""14	}1516	var sb strings.Builder1718	for _, err := range e.errors {19		sb.WriteString(err.Error() + "; ")20	}2122	// Remove the last semicolon and space23	result := sb.String()2425	return result[:len(result)-2]26}2728// Add adds a new error to the execution error29func (e *CombinedError) Add(err error) {30	if err == nil {31		return32	}3334	e.errors = append(e.errors, err)35}3637// Size returns a38func (e *CombinedError) Size() int {39	return len(e.errors)40}41

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.