Category "exception"

Keep ModelState After Redirect inside ExceptionFilterAttribute

I have a Mediatr pipeline behaviour which handles validation as a cross cutting concern, using FluentValidation it throws a ValidationException containing the v

How do I properly catch and handle PoolInitializationException in Spring Boot Application?

I'm writing a Spring Boot 2.6.3 app with a HikariDataSource created programmatically (so I can control names, timeouts, etc.). The interface method is used by a

XamlParseException: '' is not a valid value for property 'RuntimeVisibility'?

While editing a WPF custom control the design view in Visual Studio 2019 ran into this error: (entire exception details down below). Web searches have turned u

Question about exception guarantees for custom operator=

I have a class used to work with disk data consisting of an enum class and vector<char> sized based on the enum. The enum is an invariant for each object

Can't cast okHTTP response as JSON

I am using okhttp 4.9.0 to make API requests, but seems that can't get the response body as JSONOBJECT. This is my code: client.newCall(request).enqueue(object

how to send error emails to the developer in laravel 8 App

I am using laravel "laravel/framework": "^8.75" version. When deployed the app turn APP_DEBUG=false but users get errors but they can not know what is wrong and

How to call a method on application crash before objects in DI container are disposed? c#

I have a console application that is running in Kubernetes. I want it to send an event through rabbit when it crashes on unhandled exception. Here is simplifie

Python - Why is the function not working when reading from file? [closed]

This is the code i have used file

Scala Test: how to assert lenghty exception message securly and clean without hardcoding?

I have the following code, which is used to (sha) hash columns in a spark dataframe: import org.apache.spark.sql.DataFrame import org.apache.spark.sql.functions

Adding logging for an object inside catch block

I want to handle exceptions in code in a way that during the processing of an object if an exception arises, then in the catch block I want to log the object th

Automapper throwing System.Reflection.AmbiguousMatchException: Ambiguous match found

I have a piece of code that throws exception and I dont quite understand why. public async Task<List<CategoryVm>> Handle(GetCategoriesListQuery re

SilverStripe: Getting "you need to change the ClassName before you can write it" after update files to use namespaces

I'm getting this exception when trying to ->write() a DataObject called 'ModelSheet', it says the name should be Models\ModelSheet instead of ModelSheet only

discord.py MemberNotFound exception when passing a real member

When I pass *grant @user add in Discord I get the following exception: Ignoring exception in command grant: Traceback (most recent call last): File "/Users/te

Why does string not work here while char const* does?

Why does string not work here when I catch an error, and char const* does? What is the difference between the two? try { throw "connection fail"; } catch(

Exception Type: NoReverseMatch - Cannot spot problem in code

Good afternoon all, I am getting the following error message: "Reverse for 'save-review' with arguments '('',)' not found. 1 pattern(s) tried: ['save\-review/(?

How to capture nullpointerexception,ftp connection issues via a log/output file talend job

My talend job is working perfectly now,but i would like to induce some basic quality validation checks and put them in place to capture the error right away wit

.NET CORE, how to get file location for an exception in a web app, in middleware?

I've seen this question: How can I get the line number and file name from an exception in net Core? And tried the code, but it always says line 0 and no file na

How to handle mqtt disconnection on Node-RED?

I'm implementing a draft of a connection between 2 Raspberry and an Arduino, connected via mqtt. I'm working on Node-RED flows and I used mqtt nodes. As you can

WebView2 Environment Exception on application hosted on a network (Requested resource is in use)

I am unable to show more than one WebView2 control in an application hosted on a network shared folder. Let me say straight out of the bat that the solutions di

Adding details in custom exception handling

I am currently developing a custom exception middleware and I also have my own exceptions. The goal is to be able to have a common library for multiple APIs and