errs

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSchemaNotSupported = errors.New("schema not supported")

ErrSchemaNotSupported indicates a schema is not supported by a handler.

Functions

func IsErrTransformFailed

func IsErrTransformFailed(err error) bool

IsErrTransformFailed tells if an error is of ErrTransformFailed.

Types

type CtxAwareErr

type CtxAwareErr interface {
	FmtErr(format string, args ...interface{}) error
}

CtxAwareErr formats and creates an error is context aware: e.g. during schema parsing and validation, implementation of this interface can give us errors prefixed with schema name and line number. During input ingestion and transforming, it can give us errors prefixed with input stream (file) name and line number, etc.

type ErrTransformFailed

type ErrTransformFailed string

ErrTransformFailed indicates a particular record transform has failed. In general this isn't fatal, and processing can continue.

func (ErrTransformFailed) Error

func (e ErrTransformFailed) Error() string

Error implements the error interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL