HerrKater / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Have constructor/method to Error class that takes HttpRequest/HttpRequestBase as a single parameter #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What new or enhanced feature are you proposing?

Have some ability to create, or easily modify an Error instance from just a
HttpRequest/Base parameter without the need to have an Exception instance. 

What goal would this enhancement help you achieve?

At the moment if I want to log a custom error without an exception and log
the http request details I either have to pass a fake exception into the
ctor Error(Exception, HttpContext) or use the empty ctor and set the
properties manually from the request. Having a seperate ctor with just
HttpRequest/HttpRequestBase as a parameter (or removing the
ArgumentNullException from the existing ctor) would make this task simpler.

Original issue reported on code.google.com by blueghos...@gmail.com on 14 Sep 2009 at 4:25