ErrorWithStatus 추가
This commit is contained in:
@ -49,6 +49,14 @@ const (
|
|||||||
ShutdownFlagIdle = ShutdownFlag(3)
|
ShutdownFlagIdle = ShutdownFlag(3)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type ErrorWithStatus struct {
|
||||||
|
StatusCode int
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e ErrorWithStatus) Error() string {
|
||||||
|
return fmt.Sprintf("%d", e.StatusCode)
|
||||||
|
}
|
||||||
|
|
||||||
type RpcReturnTypeInterface interface {
|
type RpcReturnTypeInterface interface {
|
||||||
Value() any
|
Value() any
|
||||||
Error() error
|
Error() error
|
||||||
|
|||||||
Reference in New Issue
Block a user