API Reference 1.1.0streamHttp404

Http404 class

HTTP 404 exception.

class Http404 extends HttpStatusException {
 Http404([String path]): super._(404, _status2msg(_M404, path));
 Http404.fromUri(Uri uri): super._(404, _status2msg(_M404, uri.path), uri: uri);
 Http404.fromConnect(HttpConnect connect): this.fromUri(connect.request.uri);
}

Extends

HttpStatusException > Http404

Constructors

new Http404([String path]) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
Http404([String path]): super._(404, _status2msg(_M404, path));

new Http404.fromConnect(HttpConnect connect) #

Http404.fromConnect(HttpConnect connect): this.fromUri(connect.request.uri);

new Http404.fromUri(Uri uri) #

Http404.fromUri(Uri uri): super._(404, _status2msg(_M404, uri.path), uri: uri);

Properties

final String message #

inherited from HttpStatusException
final String message

final int statusCode #

inherited from HttpStatusException
final int statusCode

final Uri uri #

inherited from HttpStatusException
final Uri uri

Methods

String toString() #

inherited from HttpStatusException

Returns a string representation of this object.

docs inherited from Object
String toString() => "HttpStatusException($statusCode: $message)";