error-handling Questions
2
Solved
Trying to understand why the two cross-browser properties of Javascript Error object, namely "name" and "message", can't be found using the "for ... in" method
// error code
...
}catch( err ){
...
Jacklyn asked 27/3, 2013 at 9:20
7
Solved
In the book "The C Programming Language" it says:
"Many of the functions in the library set status indicators when error or end of file occur. These
indicators may be set and tested explicitly....
Reinold asked 12/7, 2009 at 18:23
4
It's common to validate arguments and return error in functions.
However, in JavaScript callback function, such as:
function myFunction(num, callback) {
if (typeof num !== 'number') return callb...
Montevideo asked 9/8, 2016 at 14:11
7
I built a website some time ago with Flask. Now all of a sudden when I try to navigate there I get the following:
NET::ERR_CERT_COMMON_NAME_INVALID
Your connection is not private
Attackers might ...
Kep asked 14/5, 2019 at 21:13
12
Solved
I'm working on an existing Laravel application in order to develop new feature but after installing the app on my computer, I have an error 500 and no clue to resolve it.
In my app.php file I have...
Hadsall asked 5/7, 2017 at 9:17
5
Solved
Is there any way to return the name of a function or procedure at runtime?
I'm currently error handling something like this:
Sub foo()
Const proc_name as string = "foo"
On Error GoTo ErrHandler
...
Gabbi asked 30/5, 2014 at 0:42
5
Solved
I have an R script with about 1400 lines. I recently started to get the following error message. I am able to run the script by highlighting and using ctrl-R, but I can't run the script in debug mo...
Nealon asked 27/10, 2014 at 10:56
8
Solved
Do you know any solution to recover from the PHP fatal error : "Allowed memory size ... exhausted"
I have a shutdown function that is called when a fatal error appear. This function create an Erro...
Sextuple asked 23/2, 2010 at 14:32
3
Solved
How to display the appropriate error message when some exception occurs.
Suppose during GET methods if the data is not found, it should display the custom exception message.
Similarly if we are t...
Helmet asked 21/9, 2018 at 5:17
13
Solved
I have found that one common reason for the error is an exception being thrown from within an exception handler. I'm quite sure this doesn't happen in the application I'm trying to debug... But I'v...
Thaumaturge asked 7/5, 2012 at 16:9
6
im facing an issue in one of my flutter apps. Im was using MapBox-SDK plugin but when I tested the app on IOS, it asked me to update my Mapbox-sdk to some version (which I did using pop install com...
Oddment asked 11/5, 2020 at 15:52
2
Solved
What does the ISupportErrorInfo interface mean? I'm at a bit of a loss to understand it. From MSDN:
This interface ensures that error
information can be propagated up the
call chain correctly....
Pauperize asked 6/10, 2008 at 1:4
2
Is there any harm in updating the message of an Error object like this?
const err = new Error('bar');
...
err.message = `foo ${err.message}`;
My objective is to add some useful information to th...
Dufour asked 23/1, 2019 at 13:38
4
I am receiving the following error in R when stacking using the caret package.
"Error: At least one of the class levels is not a valid R variable name; This will cause errors when class probabil...
Atthia asked 25/6, 2018 at 11:17
6
I am facing a challenge when it comes to deleting vectors in a namespace in pinecone. I am using javascript and trying to delete all vectors in a namespace,I get this error “[ErrorWithoutStackTrace...
Sudor asked 2/4, 2023 at 14:42
5
Solved
When I try to execute a python program from command line, it gives the following error. These errors do not cause any problem to my ouput. I dont want it to be displayed in the commandline
Traceba...
Cutlet asked 8/5, 2011 at 6:9
1
I added global-error.tsx file to the Next.js project v 13.4.16.
I am wondering how I can simulate it to see how this looks like in UI during development.
I keep my global-error.tsx file on the same...
Blastomere asked 14/12, 2023 at 18:43
2
I have this code which reads the contents of a file, expects it to be json, parses it and prints out the result:
'use strict';
const fs = require('fs');
const Promise = require("bluebird");
Promi...
Longish asked 15/10, 2015 at 13:44
4
Solved
Context:
I have three environments for an app: dev (local), test/staging (prod server), production. The app knows which is which. Error reporting on both staging and production is 0, so errors are...
Cheesecake asked 14/9, 2011 at 19:30
4
Solved
When I'm developing my REST API in PHP I'm working with application/json output, so when I get errors while testing in the browser they look like this:
<b>Fatal error</b>: Uncaught exc...
Eugeneeugenia asked 20/1, 2012 at 12:9
2
When using the anyhow crate errors can be conveniently bubbled up to the root of the app, where they are handled.
Sometimes, however, I want to know where the error happened and I can't find a way ...
Suborbital asked 20/1, 2022 at 13:33
2
Solved
On bash you can use set -e inside a script in order to exit on error:
set -e
cd unexisting-folder
echo "this line will not be printed"
But on fish shell set -e is used to erase variables:
set F...
Tobacconist asked 9/11, 2013 at 12:38
2
I was just playing around with some C++ code at Compiler Explorer and noticed some unexpected behavior when compiling a simple try/catch block. Both of the following snippets were compiled with gcc...
Whitish asked 8/1 at 17:14
3
Solved
I have a problem that is similar to this one and described in this issue. There are no stack traces in errors that come from fs/promises when used with async..await, and no way to determine where t...
Neils asked 31/3, 2022 at 20:35
12
I am new to ansible, got the below issue.
I was able to ssh into my client machine .but unable to run playbook.
Getting the error below:
[WARNING]: Unable to parse /etc/ansible/hosts as an invent...
Vetchling asked 8/11, 2018 at 10:19
1 Next >
© 2022 - 2024 — McMap. All rights reserved.