aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 5784126..2826df7 100644
--- a/errors.go
+++ b/errors.go
@@ -43,6 +43,17 @@ var (
//objects as arguments, if (some of) the provided objects are located in a
//different account.
ErrAccountMismatch = errors.New("some of the given objects are not in this account")
+ //ErrContainerMismatch is returned by operations on a container that accept
+ //objects as arguments, if (some of) the provided objects are located in a
+ //different container.
+ ErrContainerMismatch = errors.New("some of the given objects are not in this container")
+ //ErrNotLarge is returned by Object.AsLargeObject() if the object exists, but
+ //is not a large object that is composed out of segments.
+ ErrNotLarge = errors.New("not a large object")
+ //ErrSegmentInvalid is returned by LargeObject.AddSegment() if the segment
+ //provided is malformed or uses features not supported by the LargeObject's
+ //strategy. See documentation for LargeObject.AddSegment() for details.
+ ErrSegmentInvalid = errors.New("segment invalid or incompatible with large object strategy")
)
//UnexpectedStatusCodeError is generated when a request to Swift does not yield