Skip to content

Make the uri property of RedirectException nullable #49045

@brianquinlan

Description

@brianquinlan

Change

Change:

class RedirectException implements HttpException {
-  Uri get uri => ...
+  Uri? get uri => ...
}

Rationale

This will allow us to cleanly fix #49012, which causes a StateError when there is no available uri.

Impact

This will only break code that uses the RedirectException class directly and does not handle the null uri case.

Code that works with the HttpException base class will not need to be changed because uri is already nullable in that class.

This change does not break any Google code or any third-party code used by Google.

Mitigation

Users must handle a possible null return from RedirectException.uri.

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.enhancement-breaking-changeAn enhancement which is breaking.library-_http

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions