Documentation
¶
Overview ¶
Copyright © 2021 Optable Technologies Inc. All rights reserved. See LICENSE for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPositionalError ¶
NewPositionalError creates an error paired with a position.
Types ¶
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
Errors is an error that wrap two or more errors. The downside of batching many errors is that unwrap will only return the first error. Use the `Errors` method to extract all errors.
type PositionalError ¶
type PositionalError struct {
// contains filtered or unexported fields
}
PositionalError is an error paired with a position. This is useful for APIs that perform bulk operations that can partially fail and the caller must bind which input(s) failed. Use the `Position` method to extract the position.
func (*PositionalError) Error ¶
func (e *PositionalError) Error() string
func (*PositionalError) Position ¶
func (e *PositionalError) Position() int
func (*PositionalError) Unwrap ¶
func (e *PositionalError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.