diff options
Diffstat (limited to 'err.go')
| -rw-r--r-- | err.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) +} |