err

package
v0.0.0-...-309cb8d Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: AGPL-3.0 Imports: 4 Imported by: 6

Documentation

Overview

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProgramToHuman

func ProgramToHuman(v val.Value, indent int) string

func ValueToHuman

func ValueToHuman(v val.Value) string

Types

type ArgumentError

type ArgumentError struct {
	Path   ErrorPath
	Child_ Error
}

func LiftArgumentError

func LiftArgumentError(e Error) ArgumentError

func (ArgumentError) AppendPath

func (ArgumentError) Child

func (e ArgumentError) Child() Error

func (ArgumentError) Error

func (e ArgumentError) Error() string

func (ArgumentError) ErrorPath

func (e ArgumentError) ErrorPath() ErrorPath

func (ArgumentError) String

func (e ArgumentError) String() string

func (ArgumentError) Value

func (e ArgumentError) Value() val.Union

type CodecError

type CodecError struct {
	Name    string // the name of the codec
	Offset_ int
	Child_  Error
}

func (CodecError) Child

func (e CodecError) Child() Error

func (CodecError) Error

func (e CodecError) Error() string

func (CodecError) Offset

func (e CodecError) Offset() int

func (CodecError) SetOffset

func (e CodecError) SetOffset(o int) OffsetError

func (CodecError) String

func (e CodecError) String() string

func (CodecError) Value

func (e CodecError) Value() val.Union

type CompilationError

type CompilationError struct {
	Problem string
	Program val.Value
	Child_  Error
}

func (CompilationError) Child

func (e CompilationError) Child() Error

func (CompilationError) Error

func (e CompilationError) Error() string

func (CompilationError) String

func (e CompilationError) String() string

func (CompilationError) Value

func (e CompilationError) Value() val.Union

type DatabaseDoesNotExistError

type DatabaseDoesNotExistError struct {
	Name string
}

func (DatabaseDoesNotExistError) Child

func (e DatabaseDoesNotExistError) Child() Error

func (DatabaseDoesNotExistError) Error

func (DatabaseDoesNotExistError) String

func (e DatabaseDoesNotExistError) String() string

func (DatabaseDoesNotExistError) Value

type DoNotationError

type DoNotationError struct {
	Problem string
}

func (DoNotationError) Child

func (e DoNotationError) Child() Error

func (DoNotationError) Error

func (e DoNotationError) Error() string

func (DoNotationError) String

func (e DoNotationError) String() string

func (DoNotationError) Value

func (e DoNotationError) Value() val.Union

type Error

type Error interface {
	Value() val.Union // serializable
	Error() string    // should be proxy to String() (to implement error interface)
	String() string   // human readable string
	Child() Error     // may be nil
}

type ErrorList

type ErrorList []Error

func (ErrorList) Child

func (e ErrorList) Child() Error

func (ErrorList) Error

func (e ErrorList) Error() string

func (ErrorList) OverMap

func (a ErrorList) OverMap(f func(Error) Error) ErrorList

func (ErrorList) String

func (e ErrorList) String() string

func (ErrorList) Value

func (e ErrorList) Value() val.Union

type ErrorPath

type ErrorPath []ErrorPathElement

func (ErrorPath) Equals

func (p ErrorPath) Equals(q ErrorPath) bool

func (ErrorPath) String

func (p ErrorPath) String() string

func (ErrorPath) Value

func (p ErrorPath) Value() val.List

type ErrorPathElement

type ErrorPathElement interface {
	String() string
	Value() val.Union
}

type ErrorPathElementListElements

type ErrorPathElementListElements struct{}

func (ErrorPathElementListElements) String

func (ErrorPathElementListElements) Value

type ErrorPathElementListIndex

type ErrorPathElementListIndex int

func (ErrorPathElementListIndex) String

func (l ErrorPathElementListIndex) String() string

func (ErrorPathElementListIndex) Value

type ErrorPathElementMapElements

type ErrorPathElementMapElements struct{}

func (ErrorPathElementMapElements) String

func (ErrorPathElementMapElements) Value

type ErrorPathElementMapKey

type ErrorPathElementMapKey string

func (ErrorPathElementMapKey) String

func (l ErrorPathElementMapKey) String() string

func (ErrorPathElementMapKey) Value

func (l ErrorPathElementMapKey) Value() val.Union

type ErrorPathElementSetElements

type ErrorPathElementSetElements struct{}

func (ErrorPathElementSetElements) String

func (ErrorPathElementSetElements) Value

type ErrorPathElementSetItem

type ErrorPathElementSetItem struct{}

func (ErrorPathElementSetItem) String

func (l ErrorPathElementSetItem) String() string

func (ErrorPathElementSetItem) Value

func (l ErrorPathElementSetItem) Value() val.Union

type ErrorPathElementStructField

type ErrorPathElementStructField string

func (ErrorPathElementStructField) String

func (ErrorPathElementStructField) Value

type ErrorPathElementTupleIndex

type ErrorPathElementTupleIndex int

func (ErrorPathElementTupleIndex) String

func (ErrorPathElementTupleIndex) Value

type ErrorPathElementUnionCase

type ErrorPathElementUnionCase string

func (ErrorPathElementUnionCase) String

func (l ErrorPathElementUnionCase) String() string

func (ErrorPathElementUnionCase) Value

type ExecutionError

type ExecutionError struct {
	Problem string
	Child_  Error
}

func (ExecutionError) Child

func (e ExecutionError) Child() Error

func (ExecutionError) Error

func (e ExecutionError) Error() string

func (ExecutionError) String

func (e ExecutionError) String() string

func (ExecutionError) Value

func (e ExecutionError) Value() val.Union

type FuncArgPathElement

type FuncArgPathElement struct {
	Function string
	Argument ErrorPathElement
}

func NewFuncArgPathElement

func NewFuncArgPathElement(function string, argument interface{}) FuncArgPathElement

func (FuncArgPathElement) String

func (p FuncArgPathElement) String() string

func (FuncArgPathElement) Value

func (p FuncArgPathElement) Value() val.Union

type HumanReadableError

type HumanReadableError struct {
	Error_ Error
}

func (HumanReadableError) Child

func (e HumanReadableError) Child() Error

func (HumanReadableError) Error

func (e HumanReadableError) Error() string

func (HumanReadableError) String

func (e HumanReadableError) String() string

func (HumanReadableError) Value

func (e HumanReadableError) Value() val.Union

type InputParsingError

type InputParsingError struct {
	Problem string
	Input   []byte
}

general input parsing errors

func (InputParsingError) Child

func (e InputParsingError) Child() Error

func (InputParsingError) Error

func (e InputParsingError) Error() string

func (InputParsingError) String

func (e InputParsingError) String() string

func (InputParsingError) Value

func (e InputParsingError) Value() val.Union

type InternalError

type InternalError struct {
	Problem string
	Child_  Error
}

func (InternalError) Child

func (e InternalError) Child() Error

func (InternalError) Error

func (e InternalError) Error() string

func (InternalError) String

func (e InternalError) String() string

func (InternalError) Value

func (e InternalError) Value() val.Union

type ModelNotFoundError

type ModelNotFoundError struct {
	ObjectNotFoundError
}

func (ModelNotFoundError) Error

func (e ModelNotFoundError) Error() string

func (ModelNotFoundError) String

func (e ModelNotFoundError) String() string

func (ModelNotFoundError) Value

func (e ModelNotFoundError) Value() val.Union

type ModelParsingError

type ModelParsingError struct {
	Problem string
	Input   val.Value
	Path    ErrorPath
}

func (ModelParsingError) AppendPath

func (ModelParsingError) Child

func (e ModelParsingError) Child() Error

func (ModelParsingError) Error

func (e ModelParsingError) Error() string

func (ModelParsingError) ErrorPath

func (e ModelParsingError) ErrorPath() ErrorPath

func (ModelParsingError) String

func (e ModelParsingError) String() string

func (ModelParsingError) Value

func (e ModelParsingError) Value() val.Union

type NamedArgPathElement

type NamedArgPathElement string

func (NamedArgPathElement) String

func (p NamedArgPathElement) String() string

func (NamedArgPathElement) Value

func (p NamedArgPathElement) Value() val.Union

type NumericArgPathElement

type NumericArgPathElement int

func (NumericArgPathElement) String

func (p NumericArgPathElement) String() string

func (NumericArgPathElement) Value

func (p NumericArgPathElement) Value() val.Union

type ObjectNotFoundError

type ObjectNotFoundError struct {
	Ref    val.Ref
	Child_ Error
}

func (ObjectNotFoundError) Child

func (e ObjectNotFoundError) Child() Error

func (ObjectNotFoundError) Error

func (e ObjectNotFoundError) Error() string

func (ObjectNotFoundError) String

func (e ObjectNotFoundError) String() string

func (ObjectNotFoundError) Value

func (e ObjectNotFoundError) Value() val.Union

type OffsetError

type OffsetError interface {
	Error
	Offset() int
	SetOffset(int) OffsetError
}

type PathedError

type PathedError interface {
	Error
	ErrorPath() ErrorPath
	AppendPath(ErrorPathElement, ...ErrorPathElement) PathedError
}

type PermissionDeniedError

type PermissionDeniedError struct {
	Child_ Error
}

func (PermissionDeniedError) Child

func (e PermissionDeniedError) Child() Error

func (PermissionDeniedError) Error

func (e PermissionDeniedError) Error() string

func (PermissionDeniedError) String

func (e PermissionDeniedError) String() string

func (PermissionDeniedError) Value

func (e PermissionDeniedError) Value() val.Union

type RequestError

type RequestError struct {
	Problem string
	Child_  Error
}

func (RequestError) Child

func (e RequestError) Child() Error

func (RequestError) Error

func (e RequestError) Error() string

func (RequestError) String

func (e RequestError) String() string

func (RequestError) Value

func (e RequestError) Value() val.Union

Jump to

Keyboard shortcuts

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