walletmanager funcs done, now for wallet funcs

This commit is contained in:
2021-12-18 22:33:50 -05:00
parent 8d81c5f0cc
commit d76746d79e
13 changed files with 944 additions and 124 deletions

20
errs.go Normal file
View File

@@ -0,0 +1,20 @@
package gokwallet
import (
"errors"
)
var (
/*
ErrNotInitialized will be triggered if attempting to interact with an object that has not been properly initialized.
Notably, in most/all cases this means that it was not created via a New<object> func (for instance,
this would lead to a Wallet missing a handler).
It is intended as a safety check (so that you don't accidentally delete a wallet with e.g. a handler of 0 when
trying to delete a different wallet).
*/
ErrNotInitialized error = errors.New("object not properly initialized")
/*
ErrOperationFailed is a generic failure message that will occur of a Dbus operation returns non-success.
*/
ErrOperationFailed error = errors.New("a Dbus operation has failed to execute successfully")
)