Example #1
0
 public SampleExceptionFilter(IExceptionToErrorInfoConverter errorInfoConverter,
                              IHttpExceptionStatusCodeFinder statusCodeFinder,
                              IJsonSerializer jsonSerializer,
                              IOptions <AbpExceptionHandlingOptions> exceptionHandlingOptions,
                              ILogger <AbpExceptionFilter> logger)
     : base(errorInfoConverter, statusCodeFinder, jsonSerializer, exceptionHandlingOptions)
 {
     Logger = logger;
 }
Example #2
0
 public ZenExceptionFilter(
     IExceptionToErrorInfoConverter errorInfoConverter,
     IHttpExceptionStatusCodeFinder statusCodeFinder,
     IJsonSerializer jsonSerializer)
 {
     _errorInfoConverter = errorInfoConverter;
     _statusCodeFinder   = statusCodeFinder;
     _jsonSerializer     = jsonSerializer;
     Logger = NullLogger <AbpExceptionFilter> .Instance;
 }
Example #3
0
 public ErrorController(
     IExceptionToErrorInfoConverter exceptionToErrorInfoConverter,
     IHttpExceptionStatusCodeFinder httpExceptionStatusCodeFinder,
     IOptions <AbpErrorPageOptions> abpErrorPageOptions,
     IStringLocalizer <AbpUiResource> localizer)
 {
     _errorInfoConverter  = exceptionToErrorInfoConverter;
     _statusCodeFinder    = httpExceptionStatusCodeFinder;
     _localizer           = localizer;
     _abpErrorPageOptions = abpErrorPageOptions.Value;
 }
Example #4
0
        public AbpExceptionFilter(
            IExceptionToErrorInfoConverter errorInfoConverter,
            IHttpExceptionStatusCodeFinder statusCodeFinder,
            IJsonSerializer jsonSerializer,
            IOptions <AbpExceptionHandlingOptions> exceptionHandlingOptions)
        {
            _errorInfoConverter       = errorInfoConverter;
            _statusCodeFinder         = statusCodeFinder;
            _jsonSerializer           = jsonSerializer;
            _exceptionHandlingOptions = exceptionHandlingOptions.Value;

            Logger = NullLogger <AbpExceptionFilter> .Instance;
        }
Example #5
0
 public ErrorController(
     IExceptionToErrorInfoConverter exceptionToErrorInfoConverter,
     IHttpExceptionStatusCodeFinder httpExceptionStatusCodeFinder,
     IOptions <RocketErrorPageOptions> rocketErrorPageOptions,
     IStringLocalizer <RocketUiResource> localizer,
     IExceptionNotifier exceptionNotifier)
 {
     _errorInfoConverter     = exceptionToErrorInfoConverter;
     _statusCodeFinder       = httpExceptionStatusCodeFinder;
     _localizer              = localizer;
     _exceptionNotifier      = exceptionNotifier;
     _rocketErrorPageOptions = rocketErrorPageOptions.Value;
 }
Example #6
0
 public IndexModel(IExceptionToErrorInfoConverter errorInfoConverter, IHttpExceptionStatusCodeFinder statusCodeFinder)
 {
     _errorInfoConverter = errorInfoConverter;
     _statusCodeFinder   = statusCodeFinder;
 }