Skip to content

Better distinguishing between runtime problems #36

Closed
@panvid

Description

@panvid

Right now all problems in Http\Client::send() will happen in one Client\Adapter\Exception\RuntimeException with a (often sprintf) string and error code 0.

Examples:

throw new AdapterException\RuntimeException('Unable to Connect to ' . $host . ':' . $port);
throw new AdapterException\RuntimeException('Trying to write but we are not connected');

With this Exception I cannot handle useful reactions in my software.

My Feature Request hopefully triggers the discussion to cluster Exceptions or work with Exception::code to distinguish problems.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions