Questions tagged [exception]
An exception is an unusual condition that requires deviation from the program's normal flow. Normally, an exception should not result in total failure, but instead be attended by an exception handler. Exception handling is a built-in construct in many programming languages. Usually, exceptions are handled by unwinding the stack, thus rolling back to a defined state outside the exception's scope, and then invoking a handler block or routine.
exception
53,774
questions
0
votes
0
answers
10
views
catch/ignore async exceptions from futures
Here is a simple app that has 3 buttons that increment counter.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({...
-1
votes
1
answer
22
views
Reactor doOnError - How to include multiple Exception Types in method parameters
I would like to handle multiple exceptions in the same way in the Controller of a Reactive Spring Boot API.
The idea is to send a HttpStatus.BAD_REQUEST as an error response for more than one type of ...
0
votes
0
answers
30
views
How can i correctly use lambda function or CC_CALLBACK Macro for getting input from the user in cocos2d-x?
I am developing a game using cocos2d-x, in which i am trying to get input the path for the directory where i can save the game files. i have implemented it using UI Text Field and Menu Item but ...
1
vote
1
answer
74
views
CsvHelper can't find column header that is not there
I have a project using CsvHelper that I wrote in VS2017 back in 2017, and was working successfully back then. This week I am trying to drag the code into VS2022, .Net Core, and the latest CsvHelper (...
1
vote
1
answer
56
views
Why does except Exception appear to not be catching an exception?
The code below raises two exceptions: A ValueError and a library specific ApplicationError. The ValueError is still being printed to the console. Why is the except block not suppressing its output?
...
0
votes
1
answer
38
views
Stuck in handling incorrect input data on web app for model training
I am trying to add an exception feature in an ML project I am working on, I create a web app which accepts student performance data as a CSV file and then performs different machine learning ...
-2
votes
0
answers
61
views
I was running a code of c++ in visual studio when this exception showed up. Can anyone please tell me what it is? [closed]
This is the exception
I am beginner. I am programming for Bank Management System in C++. I am facing issues when i m compiling the program. I mention error below. Please suggest.
Exception thrown: ...
-1
votes
1
answer
31
views
Exception: <internal:/usr/local/Cellar/ruby/3.3.4/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
Exception: <internal:/usr/local/Cellar/ruby/3.3.4/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- xcodeproj (LoadError)
from <internal:/usr/...
1
vote
1
answer
31
views
how to decide if SocketTimeoutException means there is no connection
we have a retrofit java client to a server running in gui app, we want to notify the user if there is no connection to the server, there are some exceptions that are obvious like ConnectException or ...
0
votes
0
answers
11
views
Asserting Exception message with multi-language build servers
In my unit tests, I want to be able to validate the content message of the exception but since our build servers farm has clients in french and english, the message changes between runs and ends up ...
2
votes
1
answer
29
views
"'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete" -- best practice for implementing exceptions?
I wrote an Exception subclass in my C# project targeting .NET 8.0, and the template in the IDE automatically filled in the familiar serialization constructor (the one that takes SerializationInfo and ...
0
votes
1
answer
38
views
Appropriate way to handle exception in Java n-tier application
I have three layers in my application Controller, Service and DAO. My controller and service layers are in spring meanwhile DAO layer is in Hibernate 6. My question is what is most appropriate way to ...
0
votes
0
answers
7
views
InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306' in kaggle notebook [duplicate]
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user ="root",
password = 'password'
)
This is the code I used and I am cannot connect to ...
0
votes
1
answer
46
views
"Error creating form in Unit...fmx: FMX datamodules not supported." when inherit from TDataModule descendant class
I have a problem (with sample project).
I have a TDataModule derived class to which I have added some properties and methods.
I wanted to make sure that it was possible to create a new instance of ...
0
votes
1
answer
28
views
Exception while executing python code with Dask
I'm studying dask using the book "Fast Python: High performance techniques for large datasets" (2023). I have been trying to run the example shown below (p.241) that uses the taxes file that ...