Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DuplicateKeyError ¶
func ErrDuplicateKey ¶
func ErrDuplicateKey(msg string, tk *token.Token) *DuplicateKeyError
ErrDuplicateKey creates an duplicate key error instance with token.
func (*DuplicateKeyError) Error ¶
func (e *DuplicateKeyError) Error() string
func (*DuplicateKeyError) FormatError ¶
func (e *DuplicateKeyError) FormatError(colored, inclSource bool) string
type OverflowError ¶
func ErrOverflow ¶
ErrOverflow creates an overflow error instance with message and a token.
func (*OverflowError) Error ¶
func (e *OverflowError) Error() string
func (*OverflowError) FormatError ¶
func (e *OverflowError) FormatError(colored, inclSource bool) string
type PrettyFormatError ¶
type SyntaxError ¶
func ErrSyntax ¶
func ErrSyntax(msg string, tk *token.Token) *SyntaxError
ErrSyntax create syntax error instance with message and token
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
func (*SyntaxError) FormatError ¶
func (e *SyntaxError) FormatError(colored, inclSource bool) string
type TypeError ¶
type TypeError struct { DstType reflect.Type SrcType reflect.Type StructFieldName *string Token *token.Token }
func ErrTypeMismatch ¶
ErrTypeMismatch cerates an type mismatch error instance with token.
func (*TypeError) FormatError ¶
type UnexpectedNodeTypeError ¶
type UnexpectedNodeTypeError struct { Actual ast.NodeType Expected ast.NodeType Token *token.Token }
func ErrUnexpectedNodeType ¶
func ErrUnexpectedNodeType(actual, expected ast.NodeType, tk *token.Token) *UnexpectedNodeTypeError
func (*UnexpectedNodeTypeError) Error ¶
func (e *UnexpectedNodeTypeError) Error() string
func (*UnexpectedNodeTypeError) FormatError ¶
func (e *UnexpectedNodeTypeError) FormatError(colored, inclSource bool) string
type UnknownFieldError ¶
func ErrUnknownField ¶
func ErrUnknownField(msg string, tk *token.Token) *UnknownFieldError
ErrUnknownField creates an unknown field error instance with token.
func (*UnknownFieldError) Error ¶
func (e *UnknownFieldError) Error() string
func (*UnknownFieldError) FormatError ¶
func (e *UnknownFieldError) FormatError(colored, inclSource bool) string
Click to show internal directories.
Click to hide internal directories.