├── .gitignore ├── LICENSE ├── README.md ├── appveyor.yml ├── assets ├── logo.psd └── logo_128_128.png ├── docs ├── CNAME └── index.html ├── package.sh └── src ├── GlobalExceptionHandler.Demo ├── Controllers │ └── ValuesController.cs ├── GlobalExceptionHandler.Demo.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── RecordNotFoundException.cs ├── Startup.cs ├── appsettings.Development.json └── appsettings.json ├── GlobalExceptionHandler.Tests ├── Exceptions │ ├── HttpNotFoundException.cs │ ├── NeverThrownException.cs │ └── RecordNotFoundException.cs ├── Fixtures │ └── WebApiServerFixture.cs ├── GlobalExceptionHandler.Tests.csproj ├── Infrastructure │ └── TestServerBuilder.cs ├── TestResponse.cs └── WebApi │ ├── ContentNegotiationTests │ ├── CustomFormatter │ │ ├── JsonResponse.cs │ │ ├── JsonResponseWithException.cs │ │ ├── PlainTextResponse.cs │ │ ├── XmlResponse.cs │ │ └── XmlResponseWithException.cs │ └── GlobalFormatter │ │ ├── JsonResponse.cs │ │ └── XmlResponse.cs │ ├── GlobalFormatterTests │ ├── BareMetalTests.cs │ ├── BasicTests.cs │ ├── BasicWithOverrideTests.cs │ ├── DebugModeDisabledTests.cs │ ├── DebugModeEnabledTests.cs │ ├── FallBackResponseTest.cs │ └── OverrideFallbackResponseTest.cs │ ├── LoggerTests │ ├── HandledExceptionLoggerTests.cs │ ├── LogExceptionTests.cs │ ├── UnhandledExceptionLoggerTests.cs │ └── UnhandledExceptionTests.cs │ ├── MessageFormatterTests │ ├── StringMessageFormatter.cs │ └── TypeTests.cs │ └── StatusCodeTests │ ├── StatusCodeAtRunTimeWithEnum.cs │ ├── StatusCodeAtRunTimeWithInt.cs │ ├── StatusCodeWithEnum.cs │ └── StatusCodeWithInt.cs ├── GlobalExceptionHandler.sln └── GlobalExceptionHandler ├── ContentNegotiation ├── EmptyActionContext.cs ├── HttpContextExtensions.cs ├── MessageFormatter.cs └── ResponseBodyMessageFormatter.cs ├── GlobalExceptionHandler.csproj └── WebApi ├── ExceptionConfig.cs ├── ExceptionHandler.cs ├── ExceptionHandlerConfiguration.cs ├── ExceptionHandlerOptionsExtensions.cs ├── ExceptionTypePolymorphicComparer.cs ├── HandlerContext.cs ├── IFormatters.cs ├── RuleCreation └── ExceptionRuleCreator.cs └── WebApiExceptionHandlingExtension.cs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/appveyor.yml -------------------------------------------------------------------------------- /assets/logo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/assets/logo.psd -------------------------------------------------------------------------------- /assets/logo_128_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/assets/logo_128_128.png -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | globalexceptionhandler.net -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/docs/index.html -------------------------------------------------------------------------------- /package.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/package.sh -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/GlobalExceptionHandler.Demo.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/GlobalExceptionHandler.Demo.csproj -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/Program.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/Properties/launchSettings.json -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/RecordNotFoundException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/RecordNotFoundException.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/Startup.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/appsettings.Development.json -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Demo/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Demo/appsettings.json -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/Exceptions/HttpNotFoundException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/Exceptions/HttpNotFoundException.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/Exceptions/NeverThrownException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/Exceptions/NeverThrownException.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/Exceptions/RecordNotFoundException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/Exceptions/RecordNotFoundException.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/Fixtures/WebApiServerFixture.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/Fixtures/WebApiServerFixture.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/GlobalExceptionHandler.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/GlobalExceptionHandler.Tests.csproj -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/Infrastructure/TestServerBuilder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/Infrastructure/TestServerBuilder.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/TestResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/TestResponse.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/JsonResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/JsonResponse.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/JsonResponseWithException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/JsonResponseWithException.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/PlainTextResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/PlainTextResponse.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/XmlResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/XmlResponse.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/XmlResponseWithException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/CustomFormatter/XmlResponseWithException.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/GlobalFormatter/JsonResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/GlobalFormatter/JsonResponse.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/GlobalFormatter/XmlResponse.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/ContentNegotiationTests/GlobalFormatter/XmlResponse.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/BareMetalTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/BareMetalTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/BasicTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/BasicTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/BasicWithOverrideTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/BasicWithOverrideTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/DebugModeDisabledTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/DebugModeDisabledTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/DebugModeEnabledTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/DebugModeEnabledTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/FallBackResponseTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/FallBackResponseTest.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/OverrideFallbackResponseTest.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/GlobalFormatterTests/OverrideFallbackResponseTest.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/HandledExceptionLoggerTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/HandledExceptionLoggerTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/LogExceptionTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/LogExceptionTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/UnhandledExceptionLoggerTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/UnhandledExceptionLoggerTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/UnhandledExceptionTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/UnhandledExceptionTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/MessageFormatterTests/StringMessageFormatter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/MessageFormatterTests/StringMessageFormatter.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/MessageFormatterTests/TypeTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/MessageFormatterTests/TypeTests.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeAtRunTimeWithEnum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeAtRunTimeWithEnum.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeAtRunTimeWithInt.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeAtRunTimeWithInt.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeWithEnum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeWithEnum.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeWithInt.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.Tests/WebApi/StatusCodeTests/StatusCodeWithInt.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler.sln -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/ContentNegotiation/EmptyActionContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/ContentNegotiation/EmptyActionContext.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/ContentNegotiation/HttpContextExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/ContentNegotiation/HttpContextExtensions.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/ContentNegotiation/MessageFormatter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/ContentNegotiation/MessageFormatter.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/ContentNegotiation/ResponseBodyMessageFormatter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/ContentNegotiation/ResponseBodyMessageFormatter.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/GlobalExceptionHandler.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/GlobalExceptionHandler.csproj -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/ExceptionConfig.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/ExceptionConfig.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/ExceptionHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/ExceptionHandler.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/ExceptionHandlerConfiguration.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/ExceptionHandlerConfiguration.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/ExceptionHandlerOptionsExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/ExceptionHandlerOptionsExtensions.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/ExceptionTypePolymorphicComparer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/ExceptionTypePolymorphicComparer.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/HandlerContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/HandlerContext.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/IFormatters.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/IFormatters.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/RuleCreation/ExceptionRuleCreator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/RuleCreation/ExceptionRuleCreator.cs -------------------------------------------------------------------------------- /src/GlobalExceptionHandler/WebApi/WebApiExceptionHandlingExtension.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/josephwoodward/GlobalExceptionHandlerDotNet/HEAD/src/GlobalExceptionHandler/WebApi/WebApiExceptionHandlingExtension.cs --------------------------------------------------------------------------------