sdk.v3: gopkg.in/bblfsh/sdk.v3/driver/errors Index | Files

package errors

import "gopkg.in/bblfsh/sdk.v3/driver/errors"

Index

Package Files

errors.go

Variables

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-08-18. Refresh now. Tools for package owners.