Share via


RouteCreationException Constructors

Definition

Overloads

RouteCreationException(String)

Initializes a new instance of the RouteCreationException class with a specified error message.

RouteCreationException(String, Exception)

Initializes a new instance of the RouteCreationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

RouteCreationException(String)

Source:
RouteCreationException.cs
Source:
RouteCreationException.cs
Source:
RouteCreationException.cs

Initializes a new instance of the RouteCreationException class with a specified error message.

public:
 RouteCreationException(System::String ^ message);
public RouteCreationException (string message);
new Microsoft.AspNetCore.Routing.RouteCreationException : string -> Microsoft.AspNetCore.Routing.RouteCreationException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

RouteCreationException(String, Exception)

Source:
RouteCreationException.cs
Source:
RouteCreationException.cs
Source:
RouteCreationException.cs

Initializes a new instance of the RouteCreationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 RouteCreationException(System::String ^ message, Exception ^ innerException);
public RouteCreationException (string message, Exception innerException);
new Microsoft.AspNetCore.Routing.RouteCreationException : string * Exception -> Microsoft.AspNetCore.Routing.RouteCreationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Applies to