Documentation ¶
Overview ¶
Package errutil provides common functions for dealing with error conditions for all ceph api wrappers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatErrno ¶
FormatErrno returns the absolute value of the errno as well as a string describing the errno. The string will be empty is the errno is not known.
func FormatErrorCode ¶
FormatErrorCode returns a string that describes the supplied error source and error code as a string. Suitable to use in Error() methods. If the error code maps to an errno the string will contain a description of the error. Otherwise the string will only indicate the source and value if the value does not map to a known errno.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.