15 lines
208 B
Go
15 lines
208 B
Go
package gopp
|
|
|
|
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)
|
|
}
|
|
|