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
| Parameter | Type |
|---|---|
name | string |
path | string |
Returns
UnreachableRouteError
Overrides
ts
Error.constructorMethods
isError()
ts
static isError(error): error is Error;Indicates whether the argument provided is a built-in Error instance or not.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
error is Error
Inherited from
ts
Error.isErrorProperties
| Property | Type | Inherited from |
|---|---|---|
cause? | unknown | Error.cause |
message | string | Error.message |
name | string | Error.name |
stack? | string | Error.stack |