Exemplo n.º 1
0
 public static ErrorDetailsOptions EnableStackTraceIteration(this ErrorDetailsOptions options, bool value = true)
 {
     options.StackTraceProcessing = value;
     return(options);
 }
Exemplo n.º 2
0
 public static ErrorDetailsOptions EnableUnspecificyErrorMessages(this ErrorDetailsOptions options, bool value = true)
 {
     options.UnspecificyErrorMessages = value;
     return(options);
 }
Exemplo n.º 3
0
 public static ErrorDetailsOptions ErrorDetailFilter <TFilter>(this ErrorDetailsOptions options)
     where TFilter : class, IErrorDetailFilter
 {
     options.Filters.Add(new ErrorDetailFilterDescriptor(typeof(TFilter)));
     return(options);
 }
Exemplo n.º 4
0
 public static ErrorDetailsOptions EnableInnerErrorsFromInnerExceptions(this ErrorDetailsOptions options, bool value = true)
 {
     options.InnerErrorsFromInnerExceptions = value;
     return(options);
 }