Skip to content

Commit dc7e695

Browse files
committed
add parse error
1 parent 921cc77 commit dc7e695

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

puzzle/error.go

+9
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ type NotImplementedError struct{}
3232
func (e NotImplementedError) Error() string {
3333
return "501 - not implemented"
3434
}
35+
36+
// InputParseError occurs when something is not implemented.
37+
type InputParseError struct {
38+
Message string
39+
}
40+
41+
func (e InputParseError) Error() string {
42+
return fmt.Sprintf("input parse error: %s", e.Message)
43+
}

0 commit comments

Comments
 (0)