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 ¶
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 ¶
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 ¶
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 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