2020-12-02 11:25:25 +00:00
|
|
|
package object
|
|
|
|
|
|
|
|
type SplitInfoError struct {
|
|
|
|
si *SplitInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
const splitInfoErrorMsg = "object not found, split info has been provided"
|
|
|
|
|
2020-12-03 13:23:59 +00:00
|
|
|
func (s *SplitInfoError) Error() string {
|
2020-12-02 11:25:25 +00:00
|
|
|
return splitInfoErrorMsg
|
|
|
|
}
|
|
|
|
|
2020-12-03 13:23:59 +00:00
|
|
|
func (s *SplitInfoError) SplitInfo() *SplitInfo {
|
2020-12-02 11:25:25 +00:00
|
|
|
return s.si
|
|
|
|
}
|
|
|
|
|
2020-12-03 13:23:59 +00:00
|
|
|
func NewSplitInfoError(v *SplitInfo) *SplitInfoError {
|
|
|
|
return &SplitInfoError{si: v}
|
2020-12-02 11:25:25 +00:00
|
|
|
}
|