15 lines
207 B
Go
15 lines
207 B
Go
package tpp
|
|
|
|
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)
|
|
}
|
|
|