gopp/errors.go

16 lines
207 B
Go
Raw Normal View History

package tpp
2024-02-26 00:22:09 +03:00
import (
//"errors"
"fmt"
)
type UnexpectedError struct {
What string
Line int
}
func (err UnexpectedError) Error() string {
return fmt.Sprintf("%d: unexpected %s", err.Line, err.What)
}