move the ApplicationErrorCdoe to the qerr package

This commit is contained in:
Marten Seemann
2021-04-25 18:28:25 +07:00
parent 592fb9cad9
commit f5238bf7b1
18 changed files with 44 additions and 33 deletions

View File

@@ -46,9 +46,12 @@ func (e *TransportError) Error() string {
return str + ": " + msg
}
// An ApplicationErrorCode is an application-defined error code.
type ApplicationErrorCode uint64
type ApplicationError struct {
Remote bool
ErrorCode uint64
ErrorCode ApplicationErrorCode
ErrorMessage string
}