forked from TrueCloudLab/frostfs-sdk-go
37 lines
674 B
Go
37 lines
674 B
Go
package object
|
|
|
|
type SplitInfoError struct {
|
|
si *SplitInfo
|
|
}
|
|
|
|
const splitInfoErrorMsg = "object not found, split info has been provided"
|
|
|
|
func (s *SplitInfoError) Error() string {
|
|
return splitInfoErrorMsg
|
|
}
|
|
|
|
func (s *SplitInfoError) SplitInfo() *SplitInfo {
|
|
return s.si
|
|
}
|
|
|
|
func NewSplitInfoError(v *SplitInfo) *SplitInfoError {
|
|
return &SplitInfoError{si: v}
|
|
}
|
|
|
|
type ECInfoError struct {
|
|
ei *ECInfo
|
|
}
|
|
|
|
const ecInfoErrorMsg = "object not found, ec info has been provided"
|
|
|
|
func (e *ECInfoError) Error() string {
|
|
return ecInfoErrorMsg
|
|
}
|
|
|
|
func (e *ECInfoError) ECInfo() *ECInfo {
|
|
return e.ei
|
|
}
|
|
|
|
func NewECInfoError(v *ECInfo) *ECInfoError {
|
|
return &ECInfoError{ei: v}
|
|
}
|