Skip to main content

Questions tagged [error-handling]

Programming language constructs designed to handle errors signaled by error codes, exceptions or other language specific means.

error-handling
0 votes
0 answers
27 views

Why try on produces a null in the console in dart?

class GuessGame { String name; GuessGame(this.name) {} startGame() { print('Add a number: '); try { int numberInput = int.parse(stdin.readLineSync()!); } on FormatException { ...
Emran's user avatar
  • 1
1 vote
1 answer
67 views

WPF on .NET 4.8 has no useful stacktrace

The company I work at has an old WPF .net 4.8 desktop app running in production. They are using log4net > application insights to log the errors. The errors are all there but some stacktraces seem ...
Joey's user avatar
  • 180
0 votes
1 answer
39 views

R - dateRangeInput() - Error: "end date" > "start date"

My shiny app has a data.table to be filtered by a date range. To this end I use dateRangeInput(). When an end date precedes a start date by mistake the R console is giving an Error in seq.int: ...
firuz.safaev's user avatar
0 votes
0 answers
17 views

Type Mismatch while using FlatFileItemReader BeanWrapperFieldSetMapper from String to Date

I am trying to batch process a file which has date field. Now when I fetch Date field using FlatFileItemReader it comes as a String. I am trying to map it to following entity @Entity @Data public ...
Gaurav Matta's user avatar
0 votes
2 answers
66 views

Error communication between functions in C using linked list

There are functions in different files in my C program between which I want to communicate errors. For example: MEMOERY_ALLOCATION_FAILED, FILE_OPENING_FAILED or NAME_NOT_VALID. I thought of creating ...
talopl's user avatar
  • 188
0 votes
1 answer
50 views

How to efficiently handle nest asynchronous ops with Python asyncio lib?

I working in Python project that has next asyncio operartions. I want to make sure each level has good error handling and comes back to main loop for repeated execution. I want to set like, I there is ...
kiruthikpurpose's user avatar
0 votes
0 answers
26 views

How to log information/errors on server side for client side components in NextJS 14.2.4

I am creating a project (currently on local) using NextJS v14.2.4 and I am using app router. I am rendering some pages on the client side for adding interactivity to it. There are some scenarios where ...
Abhijay Tyagi's user avatar
-1 votes
0 answers
8 views

How to fix the error of Google Chrome (0x0000005)

The application was unable to start correctly (0x0000005). Click OK to close the applications. I tried to use the code --no-sandbox in the target section of properties of Google chrome by watching ...
Aryan malik Khalid's user avatar
2 votes
2 answers
36 views

How do I use an error as input for to if clause (in R)

This workflow will either produce a value or an error. I want that, in the event of an error, will perform an arbitrary code (it could print a message to the console, create an objet). a <- 1 b <...
BMLopes's user avatar
  • 586
0 votes
1 answer
30 views

In Xcode I am getting ( No Accounts: Add a new account in Accounts settings. ) while create build

In Xcode I am getting ( No Accounts: Add a new account in Accounts settings. ) while create build. Helpfull solution for this error And also for how to connect iPhone with Xcode I don't know please ...
Pradip Solanki's user avatar
0 votes
3 answers
34 views

Error list object has no attribute split only in Cloud interpreter VSCode runs the code right when accepting a string as input

I am building a function to split an input string into two lists as they are numbers, and find an intersection between both. My code runs fine in VSCode(Desktop) Python 3.12, no errors, but when I ...
PyCoderL1's user avatar
0 votes
0 answers
25 views

trying to get the lowest price since a given high, and the highest price since a given low

I'm trying to write a simple code to get the lowest price since a given high, and the highest price since a given low. In the code below I have hard coded the "given high" and "given ...
dalayr's user avatar
  • 13
1 vote
1 answer
55 views

How to correctly handle parsing errors with PetitParser or PetitParser2 in Pharo

I know there has been an old question How can a PetitParser parse rule signal an error?. Lukas Renggli has written it is: in general this is not good style (mixes syntactic and semantic analysis) ...
tukan's user avatar
  • 17.2k
0 votes
0 answers
20 views

Fehler in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : Kontraste können nur auf Faktoren mit 2 oder mehr Stufen angewendet werden

I encountered a problem in R when trying to bootstrap my multiple regression with a continous variable as outcome and several variables as predictors (factors and numeric). When running , R throws the ...
Anna Meyer's user avatar
0 votes
0 answers
19 views

Ensuring Atomicity in Node Js Controller Operations Including Stripe API Calls

I am facing an issue in my Node Js application where I need to ensure that operations in my controller either all succeed together or none of them succeed. Here is the scenario: In my Node Js ...
javed iqbal's user avatar

15 30 50 per page