errutil

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 3 Imported by: 0

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

func FormatErrno(errno int) (int, string)

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 added in v0.5.0

func FormatErrorCode(source string, errValue int) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL