gopp/errors.go

16 lines
206 B
Go
Raw Permalink Normal View History

2024-02-26 00:22:09 +03:00
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)
}