errors

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorBasicRuntime

type ErrorBasicRuntime struct {
	// contains filtered or unexported fields
}

ErrorBasicRuntime is a basic runtime error structure

func (*ErrorBasicRuntime) GetPath

func (e *ErrorBasicRuntime) GetPath() string

func (*ErrorBasicRuntime) GetRemainingPathLen

func (e *ErrorBasicRuntime) GetRemainingPathLen() int

type ErrorFunctionFailed

type ErrorFunctionFailed struct {
	*ErrorBasicRuntime
	Err error
}

ErrorFunctionFailed represents the error that function execution failed in the JSONPath.

func NewErrorFunctionFailed

func NewErrorFunctionFailed(path string, remainingPathLen int, err error) ErrorFunctionFailed

func (ErrorFunctionFailed) Error

func (e ErrorFunctionFailed) Error() string

type ErrorFunctionNotFound

type ErrorFunctionNotFound struct {
	Function string
}

ErrorFunctionNotFound represents the error that the function specified in the JSONPath is not found.

func NewErrorFunctionNotFound

func NewErrorFunctionNotFound(function string) ErrorFunctionNotFound

func (ErrorFunctionNotFound) Error

func (e ErrorFunctionNotFound) Error() string

type ErrorInvalidArgument

type ErrorInvalidArgument struct {
	ArgumentName string
	Err          error
}

ErrorInvalidArgument represents the error that argument specified in the JSONPath is treated as the invalid error in Go syntax.

func NewErrorInvalidArgument

func NewErrorInvalidArgument(argument string, err error) ErrorInvalidArgument

func (ErrorInvalidArgument) Error

func (e ErrorInvalidArgument) Error() string

type ErrorInvalidSyntax

type ErrorInvalidSyntax struct {
	Position int
	Reason   string
	Near     string
}

ErrorInvalidSyntax represents the error that have syntax error in the JSONPath.

func NewErrorInvalidSyntax

func NewErrorInvalidSyntax(position int, reason string, near string) ErrorInvalidSyntax

func (ErrorInvalidSyntax) Error

func (e ErrorInvalidSyntax) Error() string

type ErrorMemberNotExist

type ErrorMemberNotExist struct {
	*ErrorBasicRuntime
}

ErrorMemberNotExist represents the error that the member specified in the JSONPath did not exist in the JSON object.

func NewErrorMemberNotExist

func NewErrorMemberNotExist(path string, remainingPathLen int) ErrorMemberNotExist

func (ErrorMemberNotExist) Error

func (e ErrorMemberNotExist) Error() string

type ErrorNotSupported

type ErrorNotSupported struct {
	Feature string
	Path    string
}

ErrorNotSupported represents the error that the unsupported syntaxes specified in the JSONPath.

func NewErrorNotSupported

func NewErrorNotSupported(feature string, path string) ErrorNotSupported

func (ErrorNotSupported) Error

func (e ErrorNotSupported) Error() string

type ErrorRuntime

type ErrorRuntime interface {
	GetPath() string
	GetRemainingPathLen() int
	Error() string
}

type ErrorTypeUnmatched

type ErrorTypeUnmatched struct {
	*ErrorBasicRuntime
	ExpectedType string
	FoundType    string
}

ErrorTypeUnmatched represents the error that the node type specified in the JSONPath did not exist in the JSON object.

func NewErrorTypeUnmatched

func NewErrorTypeUnmatched(path string, remainingPathLen int, expected string, found string) ErrorTypeUnmatched

func (ErrorTypeUnmatched) Error

func (e ErrorTypeUnmatched) Error() string

Jump to

Keyboard shortcuts

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