tape: Add limits to the API
This commit is contained in:
11
tape/error.go
Normal file
11
tape/error.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package tape
|
||||
|
||||
// Error enumerates common errors in this package.
|
||||
type Error string; const (
|
||||
ErrTooLong Error = "data structure too long"
|
||||
)
|
||||
|
||||
// Error implements the error interface.
|
||||
func (err Error) Error() string {
|
||||
return string(err)
|
||||
}
|
||||
Reference in New Issue
Block a user