Skip to content

Classes: UnreachableRouteError ​

An error thrown when a named route's path does not start with /. Url pathnames always start with /, so such a route can never match a url.

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new UnreachableRouteError(name, path): UnreachableRouteError;

Parameters ​

ParameterType
namestring
pathstring

Returns ​

UnreachableRouteError

Overrides ​

ts
Error.constructor

Methods ​

isError() ​

ts
static isError(error): error is Error;

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

ParameterType
errorunknown

Returns ​

error is Error

Inherited from ​

ts
Error.isError

Properties ​

PropertyTypeInherited from
cause?unknownError.cause
messagestringError.message
namestringError.name
stack?stringError.stack