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
5 views

Why does GDB exit code 134?

#include <iostream> #include <vector> using namespace std; long long n; long long s; int main(){ cin>>n; vector<long long>a(n); for(int i=1;i<=n;i++){ ...
Oak's user avatar
  • 1
0 votes
1 answer
28 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
10 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
0 answers
11 views

Log string errors with stack traces using winston in TypeScript?

I am using Winston for logging in my TypeScript application. I want to log errors with stack traces, even when the error is a string. Below is my current Winston setup and a sample controller function ...
Jaskaran's user avatar
0 votes
2 answers
60 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
-1 votes
0 answers
35 views

How to implement exit status codes consistently in your code? [closed]

The application should under all circumstances behave like the following: If no error or warning has occurred during execution, it should exit with status code 0 If at any point during execution an ...
user26136780's user avatar
0 votes
1 answer
38 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
-1 votes
0 answers
24 views

array of product is not getting set because it saying it is undefined after sending from Context [closed]

I made 2 arrays of products which are set by the data from API. 1st one is 'products' and other one is 'copyProducts' because copyProducts will be used as reference to set the value of products after ...
Dipanshu Pandey's user avatar
0 votes
0 answers
13 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
6 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
33 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
18 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
29 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
21 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
51 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

15 30 50 per page
1
2 3 4 5
1829