10 instantiations of RouteCreationException
Microsoft.AspNetCore.Mvc.Core (3)
Routing\AttributeRoute.cs (2)
100throw new RouteCreationException( 172throw new RouteCreationException(message);
Routing\ConventionalRouteEntry.cs (1)
44throw new RouteCreationException(string.Format(
Microsoft.AspNetCore.Routing (7)
MapRouteRouteBuilderExtensions.cs (1)
114throw new RouteCreationException(Resources.FormatDefaultHandler_MustBeSet(nameof(IRouteBuilder)));
ParameterPolicyActivator.cs (4)
42throw new RouteCreationException( 63throw new RouteCreationException( 123throw new RouteCreationException( 184throw new RouteCreationException(
RouteBase.cs (1)
60throw new RouteCreationException(Resources.FormatTemplateRoute_Exception(name, template), exception);
RouteConstraintBuilder.cs (1)
106throw new RouteCreationException(
41 references to RouteCreationException
Microsoft.AspNetCore.Mvc.Core (1)
Routing\AttributeRoute.cs (1)
98catch (RouteCreationException routeCreationException)
Microsoft.AspNetCore.Mvc.Core.Test (11)
Routing\AttributeRouteTest.cs (3)
532var exception = Assert.Throws<RouteCreationException>(() => 537Assert.IsType<RouteCreationException>(exception.InnerException);
Routing\AttributeRoutingTest.cs (8)
43var ex = await Assert.ThrowsAsync<RouteCreationException>(() => route.RouteAsync(routeContext)); 67var ex = await Assert.ThrowsAsync<RouteCreationException>(async () => 101var ex = await Assert.ThrowsAsync<RouteCreationException>(async () => 139var ex = await Assert.ThrowsAsync<RouteCreationException>(async () =>
Microsoft.AspNetCore.Routing (3)
ParameterPolicyActivator.cs (1)
57catch (RouteCreationException)
RouteCreationException.cs (2)
16/// Initializes a new instance of the <see cref="RouteCreationException"/> class with a specified error message. 25/// Initializes a new instance of the <see cref="RouteCreationException"/> class with a specified error message
Microsoft.AspNetCore.Routing.Tests (25)
DefaultInlineConstraintResolverTest.cs (8)
48var ex = Assert.Throws<RouteCreationException>( 319var ex = Assert.Throws<RouteCreationException>(() => resolver.ResolveConstraint("custom")); 334var ex = Assert.Throws<RouteCreationException>(() => resolver.ResolveConstraint("custom(5,6)")); 360var ex = Assert.Throws<RouteCreationException>(() => _constraintResolver.ResolveConstraint("int(5,6)"));
DefaultParameterPolicyFactoryTest.cs (6)
43var exception = Assert.Throws<RouteCreationException>( 331var exception = Assert.Throws<RouteCreationException>( 372var exception = Assert.Throws<RouteCreationException>(
RouteConstraintBuilderTest.cs (1)
79ExceptionAssert.Throws<RouteCreationException>(
RouteTest.cs (4)
31var exception = Assert.Throws<RouteCreationException>( 1612var exception = ExceptionAssert.Throws<RouteCreationException>(
TemplateParserDefaultValuesTests.cs (6)
60var ex = Assert.Throws<RouteCreationException>( 85var ex = Assert.Throws<RouteCreationException>( 108var ex = Assert.Throws<RouteCreationException>(() =>
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2606Assert.IsType<RouteCreationException>(ex);