sdk.v3: Index | Files

package errors

import ""


Package Files



var (
    // ErrDriverFailure is returned when the driver is malfunctioning.
    ErrDriverFailure = errors.NewKind("driver failure")

    // ErrSyntax is returned when driver cannot parse the source file.
    // Can be omitted for native driver implementations.
    ErrSyntax = errors.NewKind("syntax error")

func Join Uses

func Join(errs []error) error

Join multiple errors into a single error value. If there are only one error, it will be returned directly. Zero or more than one error will be wrapped into ErrMulti.

type ErrMulti Uses

type ErrMulti struct {
    Errors []error

ErrMulti joins multiple errors.

func (*ErrMulti) Error Uses

func (e *ErrMulti) Error() string

Package errors imports 2 packages (graph). Updated 2019-11-23. Refresh now. Tools for package owners.