ErrorWithStatus 추가

This commit is contained in:
2023-10-04 18:03:19 +09:00
parent dc54082a42
commit 06ca411e03

View File

@ -49,6 +49,14 @@ const (
ShutdownFlagIdle = ShutdownFlag(3)
)
type ErrorWithStatus struct {
StatusCode int
}
func (e ErrorWithStatus) Error() string {
return fmt.Sprintf("%d", e.StatusCode)
}
type RpcReturnTypeInterface interface {
Value() any
Error() error