mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 00:00:23 +00:00
doc: add comments to cephfs error methods
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
ec1a009dee
commit
393569482e
@ -22,6 +22,7 @@ type ErrInvalidVolID struct {
|
||||
err error
|
||||
}
|
||||
|
||||
// Error returns a user presentable string of the error.
|
||||
func (e ErrInvalidVolID) Error() string {
|
||||
return e.err.Error()
|
||||
}
|
||||
@ -32,6 +33,7 @@ type ErrNonStaticVolume struct {
|
||||
err error
|
||||
}
|
||||
|
||||
// Error returns a user presentable string of the error.
|
||||
func (e ErrNonStaticVolume) Error() string {
|
||||
return e.err.Error()
|
||||
}
|
||||
@ -41,6 +43,7 @@ type ErrVolumeNotFound struct {
|
||||
err error
|
||||
}
|
||||
|
||||
// Error returns a user presentable string of the error.
|
||||
func (e ErrVolumeNotFound) Error() string {
|
||||
return e.err.Error()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user