public static HttpContextError HttpContextError(this GlitchErrorFactory factory, HttpException exception, HttpContextBase context) { if (context == null) { throw new ArgumentNullException("context"); } return(new HttpContextError(exception, context)); }
public static WcfError WcfError(this GlitchErrorFactory factory, Exception exception, OperationContext context, string errorProfile) { return(new WcfError(exception, context) .WithErrorProfile(errorProfile)); }
public static MvcError MvcError(this GlitchErrorFactory factory, ExceptionContext context, string errorProfile) { return(new MvcError(context).WithErrorProfile(errorProfile)); }
public static WebApiError WebApiError(this GlitchErrorFactory factory, HttpActionExecutedContext context, string errorProfile) { return(new WebApiError(context).WithErrorProfile(errorProfile)); }
public static HttpContextError HttpContextError(this GlitchErrorFactory factory, Exception exception, HttpContext context) { return(HttpContextError(factory, exception, new HttpContextWrapper(context))); }
public static HttpContextError HttpContextError(this GlitchErrorFactory factory, HttpException exception, string errorProfile) { return(HttpContextError(factory, exception, HttpContext.Current).WithErrorProfile(errorProfile)); }