summaryrefslogtreecommitdiffstats
path: root/err.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-07-09 15:36:08 -0230
committerSam Anthony <sam@samanthony.xyz>2026-07-09 15:36:08 -0230
commit4853cad7499a953deb4a18bae2c14c1482007e42 (patch)
treeb6a7eaf332d4c89ba585f88e1a345d716df59ae1 /err.go
downloadexchange-4853cad7499a953deb4a18bae2c14c1482007e42.zip
rate
Diffstat (limited to 'err.go')
-rw-r--r--err.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/err.go b/err.go
new file mode 100644
index 0000000..48c8b12
--- /dev/null
+++ b/err.go
@@ -0,0 +1,11 @@
+package exchange
+
+import "fmt"
+
+type errBadCurrency struct {
+ symbol string
+}
+
+func (e errBadCurrency) Error() string {
+ return fmt.Sprintf("unknown currency symbol %q", e.symbol)
+}