Skip to content

api: return errors.IsA()-testable errors for common failure cases #135

@klihub

Description

@klihub

It could be good in some cases if the package returned easily testable pre-defined(and exported package-specific errors for common failure cases, wrapped in a more specific error messages as necessary. Consumers then could test for the common failure cases and provide more user-friendly error messages on UX-visible interfaces.

If we decide to implement this, it probably would be good if we could differentiate between an unmounted resctrlfs and a potential lack of support for resctrlfs in the kernel altogether (missing resctrl from /proc/filesystems, when resctrl is either not enabled at all or it is compiled as a module but not loaded).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions