gopp/errors.go
2024-02-26 02:22:09 +05:00

15 lines
206 B
Go

package pp
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)
}