The ConfigureStartup.cs file method often contains code that looks like this:
if(env.IsDevelopment()) {
app.UseDeveloperExceptionPage();
}
The application app.UseDeveloperExceptionPage();line causes detailed information to be displayed in the browser when an exception occurs, which is very useful for debugging.
I'm sure you saw the result, it looks something like this:

, , , , . System.Exception Data . , , AppException Exception , , :
public AppException(string message, string privateMessage, Exception innerException = null)
: base(message, innerException) {
this.Data["PrivateMessage"] = privateMessage;
}
, , , PrivateMessage Exception ( AppException) . , , , , .
, ?