Skip to content

Raise an exception on check-in failure #8

@laserlemon

Description

@laserlemon

Currently, a failed check-in just returns false. Users will most likely want to fire and forget, where returning false would hide errors.

Introduce a Snitcher::Error class with subclasses for all of the ways a check-in might fail. Failed check-ins will raise the appropriate error.

All errors should include a descriptive message useful for diagnosing the issue. If due to a 4xx or 5xx response from the check-in request, the HTTP response object should also be provided within the error instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions