5 instantiations of RoutePatternException
Microsoft.AspNetCore.Routing (5)
Patterns\RoutePatternFactory.cs (1)
1079throw new RoutePatternException(rawText, errorText);
Patterns\RoutePatternParser.cs (4)
42throw new RoutePatternException(pattern, Resources.TemplateRoute_CannotHaveConsecutiveSeparators); 47throw new RoutePatternException(pattern, context.Error); 67throw new RoutePatternException(pattern, context.Error); 469throw 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)
27catch (RoutePatternException ex)
Microsoft.AspNetCore.Routing.Tests (31)
Builder\GroupTest.cs (2)
127var ex = Assert.Throws<RoutePatternException>(() => builder.DataSources.Single().Endpoints);
Patterns\RoutePatternFactoryTest.cs (2)
757var ex = Assert.Throws<RoutePatternException>(() => RoutePatternFactory.Combine(left, right));
Patterns\RoutePatternParserTest.cs (27)
358ExceptionAssert.Throws<RoutePatternException>( 370ExceptionAssert.Throws<RoutePatternException>( 387ExceptionAssert.Throws<RoutePatternException>( 402ExceptionAssert.Throws<RoutePatternException>( 411var ex = ExceptionAssert.Throws<RoutePatternException>( 425ExceptionAssert.Throws<RoutePatternException>( 434ExceptionAssert.Throws<RoutePatternException>( 443ExceptionAssert.Throws<RoutePatternException>( 451ExceptionAssert.Throws<RoutePatternException>( 460ExceptionAssert.Throws<RoutePatternException>( 489ExceptionAssert.Throws<RoutePatternException>(() => RoutePatternParser.Parse(template), expectedMessage); 495ExceptionAssert.Throws<RoutePatternException>( 504ExceptionAssert.Throws<RoutePatternException>( 513ExceptionAssert.Throws<RoutePatternException>( 521ExceptionAssert.Throws<RoutePatternException>( 529ExceptionAssert.Throws<RoutePatternException>( 538ExceptionAssert.Throws<RoutePatternException>( 546ExceptionAssert.Throws<RoutePatternException>( 557ExceptionAssert.Throws<RoutePatternException>( 568ExceptionAssert.Throws<RoutePatternException>( 577ExceptionAssert.Throws<RoutePatternException>( 585ExceptionAssert.Throws<RoutePatternException>( 606ExceptionAssert.Throws<RoutePatternException>( 614ExceptionAssert.Throws<RoutePatternException>( 622ExceptionAssert.Throws<RoutePatternException>( 633ExceptionAssert.Throws<RoutePatternException>(