HDPrivateKey: Refactored errors and moved messages to location of error.