beam: github.com/apache/beam/sdks/go/pkg/beam/util/errorx Index | Files

package errorx

import "github.com/apache/beam/sdks/go/pkg/beam/util/errorx"

Package errorx contains utilities for handling errors.

Index

Package Files

guarded.go

type GuardedError Uses

type GuardedError struct {
    // contains filtered or unexported fields
}

GuardedError is a concurrency-safe error wrapper. It is sticky in that the first error won't be overwritten.

func (*GuardedError) Error Uses

func (g *GuardedError) Error() error

Error returns the guarded error.

func (*GuardedError) TrySetError Uses

func (g *GuardedError) TrySetError(err error) bool

TrySetError sets the error, if not already set. Returns true iff the error was set.

Package errorx imports 1 packages (graph) and is imported by 2 packages. Updated 2017-12-01. Refresh now. Tools for package owners.