Skip to content

Developer should throw custom exception in interceptor #1950

@WutangNailao

Description

@WutangNailao

Request Statement

When i write a interceptor class extends Interceptor, in some case, i wish throw some exception to tell the developer some thing went wrong. so i throw a custom exception in override function 'onResponse', but this exception was catched by DioException, and this exception can not tell me more infomation about this error.

image
image

So, i wish this will be supported

Solution Brainstorm

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: PR welcomedp: dioTargeting `dio` packages: featureThis issue indicates a feature request

    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