diff options
| author | bt <bt@localhost> | 2026-03-31 09:01:29 +0200 |
|---|---|---|
| committer | bt <bt@localhost> | 2026-03-31 10:38:03 +0200 |
| commit | 75504a81885db55a3f5f9041dcda6b9d2ef421b2 (patch) | |
| tree | b2b254240ec380b875380f5390d30dfa9cb0ad42 /core/errors.go | |
| parent | 5e8c7c1c967f01f588655aced32b6b4ca6408850 (diff) | |
| download | solec-75504a81885db55a3f5f9041dcda6b9d2ef421b2.tar.gz solec-75504a81885db55a3f5f9041dcda6b9d2ef421b2.zip | |
[daemon] Better error handling
Diffstat (limited to 'core/errors.go')
| -rw-r--r-- | core/errors.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/errors.go b/core/errors.go new file mode 100644 index 0000000..a50fbf7 --- /dev/null +++ b/core/errors.go @@ -0,0 +1,12 @@ +package core + +import "errors" + +var ( + ErrUnexpectedPayloadType = errors.New("unexpected payload type") + ErrAuthInvalidUser = errors.New("invalid user") + ErrAuthInvalidPassword = errors.New("invalid password") + ErrInvalidAddress = errors.New("invalid address") + ErrNotSupported = errors.New("not supported") + ErrDisconnected = errors.New("disconnected") +) |
