Exemplo n.º 1
0
 public SampleExceptionFilter(IExceptionToErrorInfoConverter errorInfoConverter,
                              IHttpExceptionStatusCodeFinder statusCodeFinder,
                              IJsonSerializer jsonSerializer,
                              IOptions <AbpExceptionHandlingOptions> exceptionHandlingOptions,
                              ILogger <AbpExceptionFilter> logger)
     : base(errorInfoConverter, statusCodeFinder, jsonSerializer, exceptionHandlingOptions)
 {
     Logger = logger;
 }
Exemplo n.º 2
0
 public ZenExceptionFilter(
     IExceptionToErrorInfoConverter errorInfoConverter,
     IHttpExceptionStatusCodeFinder statusCodeFinder,
     IJsonSerializer jsonSerializer)
 {
     _errorInfoConverter = errorInfoConverter;
     _statusCodeFinder   = statusCodeFinder;
     _jsonSerializer     = jsonSerializer;
     Logger = NullLogger <AbpExceptionFilter> .Instance;
 }
Exemplo n.º 3
0
 public ErrorController(
     IExceptionToErrorInfoConverter exceptionToErrorInfoConverter,
     IHttpExceptionStatusCodeFinder httpExceptionStatusCodeFinder,
     IOptions <AbpErrorPageOptions> abpErrorPageOptions,
     IStringLocalizer <AbpUiResource> localizer)
 {
     _errorInfoConverter  = exceptionToErrorInfoConverter;
     _statusCodeFinder    = httpExceptionStatusCodeFinder;
     _localizer           = localizer;
     _abpErrorPageOptions = abpErrorPageOptions.Value;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
 }
Exemplo n.º 6
0
 public IndexModel(IExceptionToErrorInfoConverter errorInfoConverter, IHttpExceptionStatusCodeFinder statusCodeFinder)
 {
     _errorInfoConverter = errorInfoConverter;
     _statusCodeFinder   = statusCodeFinder;
 }