MCPcopy Create free account
hub / github.com/angular/angular / noMatchError

Method noMatchError

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

Source from the content-addressed store, hash-verified

94 }
95
96 private noMatchError(e: NoMatch): RuntimeError<RuntimeErrorCode.NO_MATCH> {
97 return new RuntimeError(
98 RuntimeErrorCode.NO_MATCH,
99 typeof ngDevMode === 'undefined' || ngDevMode
100 ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'`
101 : `'${e.segmentGroup}'`,
102 );
103 }
104
105 async recognize(): Promise<{state: RouterStateSnapshot; tree: UrlTree}> {
106 const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;

Callers 1

matchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected