forked from TrueCloudLab/frostfs-node
[#1247] *: Clarify docs about returned errors from apistatus
package
`apistatus` package provides types which implement build-in `error` interface. Add `error of type` pattern when documenting these errors in order to clarify how these errors should be handled (e.g. `errors.Is` is not good). Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
459bdcf04b
commit
318639e5bf
24 changed files with 33 additions and 33 deletions
|
@ -69,8 +69,8 @@ func (r *RngRes) HasMeta() bool {
|
|||
// did not allow to completely read the object part.
|
||||
//
|
||||
// Returns ErrRangeOutOfBounds if requested object range is out of bounds.
|
||||
// Returns apistatus.ObjectNotFound if requested object is missing.
|
||||
// Returns apistatus.ObjectAlreadyRemoved if requested object has been marked as removed in shard.
|
||||
// Returns an error of type apistatus.ObjectNotFound if requested object is missing.
|
||||
// Returns an error of type apistatus.ObjectAlreadyRemoved if requested object has been marked as removed in shard.
|
||||
func (s *Shard) GetRange(prm *RngPrm) (*RngRes, error) {
|
||||
var big, small storFetcher
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue