2021-11-16 18:15:56 +00:00
|
|
|
package apistatus
|
|
|
|
|
|
|
|
import (
|
2024-10-07 14:20:25 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/status"
|
2021-11-16 18:15:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type unrecognizedStatusV2 struct {
|
|
|
|
v2 status.Status
|
|
|
|
}
|
|
|
|
|
2023-08-02 07:01:03 +00:00
|
|
|
func (x *unrecognizedStatusV2) Error() string {
|
2021-11-16 18:15:56 +00:00
|
|
|
return errMessageStatusV2("unrecognized", x.v2.Message())
|
|
|
|
}
|
|
|
|
|
2022-02-01 11:55:21 +00:00
|
|
|
// implements local interface defined in FromStatusV2 func.
|
2021-11-16 18:15:56 +00:00
|
|
|
func (x *unrecognizedStatusV2) fromStatusV2(st *status.Status) {
|
|
|
|
x.v2 = *st
|
|
|
|
}
|