Skip to content

Make Pthread error be a named constant #4

Description

@iddm

As a library user I want to have a errors understandable at a glance without looking what the error number means. In #3 I have a error Pthread(22) which I can't understand quickly. Making the error be a named constant (a enum variant) allows me to understand the error quickly: Error::Pthread(PthreadError::EINVAL).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions