From 56a62309ae43a6120c411a71a72247c83b6fe2ba Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Tue, 5 Nov 2013 22:35:06 +0000 Subject: [PATCH] Add some error messages to be used by btcd. ok jcv --- jsonerr.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jsonerr.go b/jsonerr.go index 4b8935c7..d0ec83ca 100644 --- a/jsonerr.go +++ b/jsonerr.go @@ -145,3 +145,15 @@ var ( Message: "Unable to decode hex string", } ) + +// Errors that are specific to btcd. +var ( + ErrNoWallet = Error{ + Code: -1, + Message: "This implementation does not implement wallet commands", + } + ErrUnimplemented = Error{ + Code: -1, + Message: "Command unimplemented", + } +)