2021-11-08 10:04:45 +00:00
|
|
|
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}
|
|
|
|
}
|
2024-04-22 06:51:20 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
}
|