aboutsummaryrefslogtreecommitdiff
path: root/error.go
blob: 0ad5a423fe727342ff037c3be1eeb9c17a7b9925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package sleepy

// ErrorString is an Error that returns a string
// representation.
type ErrorString struct {
    s string
}

// Returns the string associated with this ErrorString.
func (e *ErrorString) Error() string {
    return e.s
}
bgstack15