aboutsummaryrefslogtreecommitdiff
path: root/types/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'types/errors.go')
-rw-r--r--types/errors.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/types/errors.go b/types/errors.go
new file mode 100644
index 0000000..1e5a562
--- /dev/null
+++ b/types/errors.go
@@ -0,0 +1,12 @@
+package types
+
+import "dove/enums"
+
+type ServiceError struct {
+ Kind enums.ErrorKind
+ Message string
+}
+
+func (self *ServiceError) Error() string {
+ return self.Message
+}