func ErrGetAddress(err error) sdk.Error {
	return types.NewError(types.CodeGetAddressFailed, fmt.Sprintf("failed to get address: %s", err.Error()))
}
ErrGetAddress - error when get address failed
package types
import (
	"fmt"
	"github.com/lino-network/lino/types"
	sdk "github.com/cosmos/cosmos-sdk/types"
)
func ErrReceiverNotFound(username types.AccountKey) sdk.Error {
	return types.NewError(types.CodeReceiverNotFound, fmt.Sprintf("receiver %s not found", username))
}
func ErrSenderNotFound(username types.AccountKey) sdk.Error {
	return types.NewError(types.CodeSenderNotFound, fmt.Sprintf("sender %s not found", username))
}
func ErrAccountNotFound(username types.AccountKey) sdk.Error {
	return types.NewError(types.CodeAccountNotFound, fmt.Sprintf("account %s not found", username))
}
func ErrAccountBankNotFound(addr sdk.Address) sdk.Error {
	return types.NewError(types.CodeAccountBankNotFound, fmt.Sprintf("account bank not found: %s", addr))
}
func ErrReferrerNotFound(username types.AccountKey) sdk.Error {
	return types.NewError(types.CodeReferrerNotFound, fmt.Sprintf("referrer %s not found", username))
}
func ErrAccountAlreadyExists(accKey types.AccountKey) sdk.Error {
	return types.NewError(types.CodeAccountAlreadyExists, fmt.Sprintf("account %v already exists", accKey))
}
func ErrAddressAlreadyTaken(addr string) sdk.Error {
	return types.NewError(types.CodeAddressIsTaken, fmt.Sprintf("address %s is already taken", addr))
}
func ErrRegisterFeeInsufficient() sdk.Error {
	return types.NewError(types.CodeRegisterFeeInsufficient, fmt.Sprintf("register fee insufficient"))
}
func ErrAddSavingCoinWithFullCoinDay() sdk.Error {
	return types.NewError(types.CodeAddSavingCoinWithFullCoinDay, fmt.Sprint("failed to add saving coin with full coin day"))
}
func ErrAddSavingCoin() sdk.Error {
	return types.NewError(types.CodeAddSavingCoin, fmt.Sprint("failed to add saving coin"))
}
func ErrGetResetKey(accKey types.AccountKey) sdk.Error {
	return types.NewError(types.CodeGetResetKey, fmt.Sprintf("get %v reset key failed", accKey))
}
func ErrGetTransactionKey(accKey types.AccountKey) sdk.Error {
	return types.NewError(types.CodeGetTransactionKey, fmt.Sprintf("get %v transaction key failed", accKey))
}
func ErrGetAppKey(accKey types.AccountKey) sdk.Error {
	return types.NewError(types.CodeGetAppKey, fmt.Sprintf("get %v app key failed", accKey))
}
func ErrGetSigningKey(username types.AccountKey) sdk.Error {
	return types.NewError(types.CodeGetSigningKeyFailed, fmt.Sprintf("get %v signing key failed", username))
}
func ErrGetSavingFromBank(err error) sdk.Error {
	return types.NewError(types.CodeGetSavingFromBank, fmt.Sprintf("failed to get saving from bank: %s", err.Error()))
}
func ErrGetSequence(err error) sdk.Error {
	return types.NewError(types.CodeGetSequence, fmt.Sprintf("failed to get sequence: %s", err.Error()))
}