diff --git a/protocol/error.go b/protocol/error.go index 5ebd74f..4ed3912 100644 --- a/protocol/error.go +++ b/protocol/error.go @@ -58,3 +58,7 @@ func (e *ObProtocolError) Error() string { e.trace, ) } + +func (e *ObProtocolError) ErrorCode() error2.ObErrorCode { + return e.errCode +}