Skip to content

Consolidate return-value vs exception throwing #41

@adamwight

Description

@adamwight

There is some tension between the queue backend functions which return true and throw exceptions. If there is no way to return false, then calling code will include redundant error handling for no good reason.

However, voiding the return value will probably break existing code. We can leave the "return true" until this usage is deprecated...

Do you agree that we should throw a JobNotFound exception whenever get($key) or pop() fails to find a message?

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