initial commits

master
Charles Iliya Krempeaux 2023-11-06 04:26:38 -08:00
parent 6328092055
commit 97326339f8
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ const (
ErrUnexpectedEndOfFile = erorr.Error("rfc8259: unexpected end-of-file") ErrUnexpectedEndOfFile = erorr.Error("rfc8259: unexpected end-of-file")
) )
func ErrInternalError(msg string) error {
return erorr.Errorf("rfc8259: JSON parser had an unexpected internal-error — %s", msg)
}
func ErrProblemReadingRune(err error) error { func ErrProblemReadingRune(err error) error {
return erorr.Errorf("rfc8259: JSON parser had a problem — problem reading rune: %w", err) return erorr.Errorf("rfc8259: JSON parser had a problem — problem reading rune: %w", err)
} }