Category "exception"

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

iOS App sometimes crashes on Release Mode (EXC_BAD_ACCESS (SIGSEGV))

Currently experiencing a problem where the app sometime crashes only in release mode. Any ideas on how to decode the IOS Crash log, i've attached a small sectio

Exception has occured: WebDriverException // Session deleted because of page crash

while I was able to get help on another issue with a python-based web scraper, another issue comes up when I run the code. Page crash Can someone tell me why it

Angular schematics exception: "NOT SUPPORTED: keyword "id", use "$id" for schema ID"

I have a custom schematic that won't apply to a new project... I also looked at this question but I couldn't make it work... My main workspace runs with this co

Angular schematics exception: "NOT SUPPORTED: keyword "id", use "$id" for schema ID"

I have a custom schematic that won't apply to a new project... I also looked at this question but I couldn't make it work... My main workspace runs with this co

Raising Python exceptions

I am aware of how to raise exceptions and how to catch them, but how do you know when to raise a certain common exception such as KeyError or ValueError? And wh

Read information of ID causing error from Exception

In C# My Sql Entity Framework 6 Insert is return exception Cannot add or update a child row: a foreign key constraint fails (portaldb.masterselectionhistory, C

how to handle errors in exception filters with Fastify NestJs?

Im using the following code to catch error in fastify, however my error is that "response.send" is not a function: What's the right way to send the error on my

Azure Service Bus Namespace creation is failing with unknown error

When I am trying to create a Service Bus Namespace in Azure. It is failing with the below exception. Microsoft.Azure.Management.ServiceBus.Models.ErrorResponseE