Feedback on checked exceptions and lambdas
A developer discusses feedback on handling checked exceptions in Java lambdas, comparing libraries like Vavr, Spring, and result4j.
A developer discusses feedback on handling checked exceptions in Java lambdas, comparing libraries like Vavr, Spring, and result4j.
Explains how to create custom argument validation guards using the new extension feature in C# 14 and .NET 10.
Overview of the new developer Exception page in ASP.NET Core 9, highlighting enhanced debugging features like endpoint metadata display.
Explores new Problem Details enhancements in ASP.NET 9 for better error handling and response customization in HTTP APIs.
Explains why certain exception instances like OutOfMemoryException are pre-allocated in .NET memory dumps, even in simple applications.
A guide to using the EntityFramework.Exceptions library to handle specific database errors like constraint violations in Entity Framework.
Explores ASP.NET 8's new IExceptionHandler to convert exceptions into standardized Problem Details responses for better API error reporting.
Learn how to use the C# 'is not' operator with exception filtering to write cleaner and more maintainable error handling code.
Explores new ArgumentException helper methods proposed for .NET 8, including ThrowIfNullOrWhiteSpace and ThrowIfNullOrEmpty for collections.
Explains the difference between 'throw;' and 'throw exc;' in C#, focusing on how the latter truncates the stack trace.
Analyzes the performance cost of exceptions in .NET, showing how they slow down loops and offering optimization advice.
A deep dive into how the .NET runtime performs stack walking for garbage collection, debugging, and exception handling.
A guide to implementing comprehensive error handling for both exceptions and HTTP status codes (like 404) in ASP.NET Core MVC applications.
A guide to implementing per-request timeout handling and proper TimeoutExceptions in .NET's HttpClient, addressing its default limitations.
A developer shares the code and lessons learned from creating a Twitter bot that tweets summaries of Auckland bus system data.
Explores techniques for handling checked exceptions within Java 8 Stream operations, proposing solutions and establishing common terminology.
Explores Serilog for structured JSON logging in .NET and introduces Serilog.Exceptions to capture full exception details.
Explains why Python's hasattr() function is dangerous and misleading, especially in Python 2, and recommends using try/except or getattr() instead.
Explains the key advantage of C# 6 exception filters: they preserve the call stack for debugging by not unwinding it when a filter condition fails.
Discusses the misuse of guard clauses in code, arguing for domain-specific exceptions over generic null checks.