Update error constructor names

This commit is contained in:
Jae Kwon 2018-01-18 00:53:40 -08:00
parent 11cccfaf02
commit 48cc398266
1 changed files with 7 additions and 7 deletions

View File

@ -42,31 +42,31 @@ func CodeToDefaultLog(code uint32) string {
// All errors are created via constructors so as to enable us to hijack them
// and inject stack traces if we really want to.
func InternalError(log string) Error {
func ErrInternal(log string) Error {
return newError(CodeInternalError, log)
}
func TxParseError(log string) Error {
func ErrTxParse(log string) Error {
return newError(CodeTxParseError, log)
}
func BadNonce(log string) Error {
func ErrBadNonce(log string) Error {
return newError(CodeBadNonce, log)
}
func Unauthorized(log string) Error {
func ErrUnauthorized(log string) Error {
return newError(CodeUnauthorized, log)
}
func InsufficientFunds(log string) Error {
func ErrInsufficientFunds(log string) Error {
return newError(CodeInsufficientFunds, log)
}
func UnknownRequest(log string) Error {
func ErrUnknownRequest(log string) Error {
return newError(CodeUnknownRequest, log)
}
func UnrecognizedAddress(log string) Error {
func ErrUnrecognizedAddress(log string) Error {
return newError(CodeUnrecognizedAddress, log)
}