5 instantiations of RoutePatternException
Microsoft.AspNetCore.Routing (5)
Patterns\RoutePatternFactory.cs (1)
1079
throw new
RoutePatternException
(rawText, errorText);
Patterns\RoutePatternParser.cs (4)
42
throw new
RoutePatternException
(pattern, Resources.TemplateRoute_CannotHaveConsecutiveSeparators);
47
throw new
RoutePatternException
(pattern, context.Error);
67
throw new
RoutePatternException
(pattern, context.Error);
469
throw new
RoutePatternException
(routePattern, Resources.TemplateRoute_InvalidRouteTemplate);
34 references to RoutePatternException
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternException.cs (1)
27
/// Creates a new instance of <see cref="
RoutePatternException
"/>.
Patterns\RoutePatternFactory.cs (1)
1032
/// <exception cref="
RoutePatternException
"></exception>
Template\TemplateParser.cs (1)
27
catch (
RoutePatternException
ex)
Microsoft.AspNetCore.Routing.Tests (31)
Builder\GroupTest.cs (2)
127
var
ex = Assert.Throws<
RoutePatternException
>(() => builder.DataSources.Single().Endpoints);
Patterns\RoutePatternFactoryTest.cs (2)
757
var
ex = Assert.Throws<
RoutePatternException
>(() => RoutePatternFactory.Combine(left, right));
Patterns\RoutePatternParserTest.cs (27)
358
ExceptionAssert.Throws<
RoutePatternException
>(
370
ExceptionAssert.Throws<
RoutePatternException
>(
387
ExceptionAssert.Throws<
RoutePatternException
>(
402
ExceptionAssert.Throws<
RoutePatternException
>(
411
var
ex = ExceptionAssert.Throws<
RoutePatternException
>(
425
ExceptionAssert.Throws<
RoutePatternException
>(
434
ExceptionAssert.Throws<
RoutePatternException
>(
443
ExceptionAssert.Throws<
RoutePatternException
>(
451
ExceptionAssert.Throws<
RoutePatternException
>(
460
ExceptionAssert.Throws<
RoutePatternException
>(
489
ExceptionAssert.Throws<
RoutePatternException
>(() => RoutePatternParser.Parse(template), expectedMessage);
495
ExceptionAssert.Throws<
RoutePatternException
>(
504
ExceptionAssert.Throws<
RoutePatternException
>(
513
ExceptionAssert.Throws<
RoutePatternException
>(
521
ExceptionAssert.Throws<
RoutePatternException
>(
529
ExceptionAssert.Throws<
RoutePatternException
>(
538
ExceptionAssert.Throws<
RoutePatternException
>(
546
ExceptionAssert.Throws<
RoutePatternException
>(
557
ExceptionAssert.Throws<
RoutePatternException
>(
568
ExceptionAssert.Throws<
RoutePatternException
>(
577
ExceptionAssert.Throws<
RoutePatternException
>(
585
ExceptionAssert.Throws<
RoutePatternException
>(
606
ExceptionAssert.Throws<
RoutePatternException
>(
614
ExceptionAssert.Throws<
RoutePatternException
>(
622
ExceptionAssert.Throws<
RoutePatternException
>(
633
ExceptionAssert.Throws<
RoutePatternException
>(