Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
SyntaxError wraps around json.SyntaxError to provide better context by it's Error().The original error is available through the method Original
func NewSyntaxError ¶
func NewSyntaxError(original *json.SyntaxError, jsonContents []byte, contextSize int64) *SyntaxError
NewSyntaxError returns a SyntaxError wrapping around json.SyntaxError. The provided jsonContents should be the input that produced the error the contextSize is the number of lines around the to be printed as well
Notice: in the message all the tabs are replaced by a single space
func (*SyntaxError) Error ¶
func (s *SyntaxError) Error() string
func (*SyntaxError) Original ¶
func (s *SyntaxError) Original() *json.SyntaxError
Original returns the original json.SyntaxError
Click to show internal directories.
Click to hide internal directories.