mirror of https://github.com/ceph/go-ceph
rados: add doc comments for RadosError type
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
030eaaa548
commit
bc9b7c58ed
|
@ -14,8 +14,10 @@ import (
|
|||
"github.com/ceph/go-ceph/errutil"
|
||||
)
|
||||
|
||||
// RadosError represents an error condition returned from the Ceph RADOS APIs.
|
||||
type RadosError int
|
||||
|
||||
// Error returns the error string for the RadosError type.
|
||||
func (e RadosError) Error() string {
|
||||
errno, s := errutil.FormatErrno(int(e))
|
||||
if s == "" {
|
||||
|
|
Loading…
Reference in New Issue