MCPcopy
hub / github.com/angular/angular / noMatchError

Method noMatchError

packages/router/src/recognize.ts:88–95  ·  view source on GitHub ↗
(e: NoMatch)

Source from the content-addressed store, hash-verified

86 }
87
88 private noMatchError(e: NoMatch): RuntimeError<RuntimeErrorCode.NO_MATCH> {
89 return new RuntimeError(
90 RuntimeErrorCode.NO_MATCH,
91 typeof ngDevMode === 'undefined' || ngDevMode
92 ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'`
93 : `'${e.segmentGroup}'`,
94 );
95 }
96
97 async recognize(): Promise<{state: RouterStateSnapshot; tree: UrlTree}> {
98 const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;

Callers 1

matchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected