From 99a4f2f4e29e7963977ba16bf3aba3463a1c61d1 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 11 Feb 2021 22:57:46 -0500 Subject: lib: add CPError --- lib/error.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/error.go (limited to 'lib/error.go') 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 +// SPDX-License-Identifier: ISC + +package lib + +// CryptoPals Error +type CPError struct { + err string +} + +func (e CPError) Error() string { return e.err } -- cgit v1.2.3