summaryrefslogtreecommitdiffstats
path: root/lib/error.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2021-02-11 22:57:46 -0500
committerrsiddharth <s@ricketyspace.net>2021-02-11 22:57:46 -0500
commit99a4f2f4e29e7963977ba16bf3aba3463a1c61d1 (patch)
treee45770f571fdfc15f94e630fb274e7d045c9ea71 /lib/error.go
parent3217e3fbad29188009cb6df88d2db6792b8aa109 (diff)
lib: add CPError
Diffstat (limited to 'lib/error.go')
-rw-r--r--lib/error.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/error.go b/lib/error.go
new file mode 100644
index 0000000..3b49a05
--- /dev/null
+++ b/lib/error.go
@@ -0,0 +1,11 @@
+// Copyright © 2021 rsiddharth <s@ricketyspace.net>
+// SPDX-License-Identifier: ISC
+
+package lib
+
+// CryptoPals Error
+type CPError struct {
+ err string
+}
+
+func (e CPError) Error() string { return e.err }