aboutsummaryrefslogtreecommitdiff
path: root/error.go
diff options
context:
space:
mode:
authorDoug Black <dblack@twilio.com>2014-01-27 11:20:22 -0500
committerDoug Black <dblack@twilio.com>2014-01-27 11:20:22 -0500
commit6ba542f49d739ef4c94bc28f552d5519d9d75151 (patch)
tree3def11e9c9ee1a5e6297daf8151943bb9d39f2dd /error.go
parentexport 'method supported' interfaces (diff)
downloadsleepy-6ba542f49d739ef4c94bc28f552d5519d9d75151.tar.gz
sleepy-6ba542f49d739ef4c94bc28f552d5519d9d75151.tar.bz2
sleepy-6ba542f49d739ef4c94bc28f552d5519d9d75151.zip
add docs
Diffstat (limited to 'error.go')
-rw-r--r--error.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/error.go b/error.go
index dc129cb..0ad5a42 100644
--- a/error.go
+++ b/error.go
@@ -1,9 +1,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