exception Questions

2

Can I rely on Snowflake's lazy evaluation for testing and exception throwing? Are CTEs lazily evaluated? Is this documented? (related question: Assertions in Snowflake)

0

I don't know if this is a bug, or I just don't understand what's happening. If I have a run statement as the last statement in a try block, any error in the run statement is not caught. If it is no...
Noble asked 2/10 at 4:32

4

Solved

As you know, if we simply do: >>> a > 0 Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> a > 0 NameError: name 'a' is not defined Is there ...
Stifling asked 16/2, 2010 at 5:7

7

Solved

Could you please tell me which approach is better in below two code blocks? catch (MyException e) { throw new MyException ("Error processing request", e); } Or catch (MyException e) { throw e...
Ekaterinoslav asked 7/1, 2014 at 6:58

3

I stumbled upon code looking something like this: void run() { try { doSomething(); } catch (Exception ex) { System.out.println("Error: " + ex); throw ex; } } void doSomething() { throw ne...
Bickel asked 16/10, 2019 at 15:3

3

I have this tree of objects A B extends A C extends B D extends B E extends C F extends A and has one reference to A A has the following annotation @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS,i...
Sculpt asked 5/4, 2013 at 12:27

4

Solved

I am using Serilog to log information about an asp.net core 2.1 application hosted on IIS. When exceptions occur, I am informed by email. The thing is, some exceptions happen without hurting the ap...
Cartercarteret asked 29/8, 2018 at 19:17

4

Solved

I am following this example (Validate Request Body and Parameter in Spring Boot in medium) and this example to implement a Handler to handle the correctness of a JSON as a parameter. The concepts a...
Concupiscence asked 9/3, 2023 at 21:30

2

Solved

I have this tiny piece of code where I try to add prefixes for my HttpListener: listener = new HttpListener(); listener.Prefixes.Add("http://192.168.0.108:8088/"); listener.Start(); Which throws...
Heathenry asked 25/12, 2017 at 15:5

6

Solved

Alright so, i got the code from a coworker and when i start it with android studio i get this exception. I guess, it might be as simple a what it states, a module is missing. But i dont know which...
Peseta asked 25/1 at 9:48

12

I started to use gdal_csharp dll in my application and read a geotiff file. but it says: The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception. it's my code string fileName = @"/...
Splay asked 16/1, 2013 at 7:45

6

When my image is not present in the server or if the image URL is not correct, I'm getting an exception error. How can I handle this error in flutter? Can I use future to handle this error? I tried...
Dotterel asked 20/6, 2020 at 20:21

4

Solved

The python unittest runner handles all exceptions. I would like to catch them with my debugger. Is there a way to make my unittest runner re-raise tests exceptions to terminate the process? I want...
Monoplane asked 29/12, 2012 at 11:48

9

Solved

Is the following way to code good practice? try { //my code here } catch (Exception e) { logger.error("Some error ", e); throw new MyCustomException("Some error ", e); } Moreover, should I.. ...
Carper asked 27/2, 2014 at 15:3

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

I am getting following stacktrace error while running web application on tomcat, unable to find root cause of this exception. Eclipse 32 bit Luna Release (4.4.0) Tomcat 32 bit 8.0.30 jdk1.8.0_66 ...
Errant asked 1/1, 2016 at 4:40

3

Solved

As far as I know, terminate() is called when there is some problem with exception handling(usually it's just not caught). What I got is just one error line terminate called recursively. After goo...
Inaccurate asked 10/9, 2012 at 8:36

19

Solved

Can the new operator throw an exception in real life? And if so, do I have any options for handling such an exception apart from killing my application? Update: Do any real-world, new-heavy applica...
Montcalm asked 23/3, 2010 at 2:21

4

I am implementing a parser for a domain specific language, and want to be able to raise a SyntaxError. How do I set the filename, lineno and offset when raising this exception? exception SyntaxE...
Trigonous asked 15/11, 2015 at 8:31

10

Solved

I have a web service method I am calling which is 3rd party and outside of my domain. For some reason now and again the web service fails with a gateway timeout. It is intermittent and a call to it...
Auxiliary asked 16/2, 2010 at 2:26

2

Solved

I would really appreciate someone help me resolving the following issue: I am getting now and then the following exception: Index was out of range. Must be non-negative and less than the size o...
Yakutsk asked 28/9, 2012 at 18:23

1

I am learning C++ using the books listed here. I wrote the following example(for purely academic reasons) that compiles with GCC but not with Clang and MSVC. Demo. struct C { static bool f() noexc...
Footmark asked 10/10, 2022 at 12:47

2

Solved

is there a way how to run an exception through the apollo exception handler manually? I have 90% of the application in GraphQL but still have two modules as REST and I'd like to unify the way the ...
Tavis asked 18/5, 2020 at 7:56

2

I'm trying to use the Functions Emulator but it is causing problems when I try to use it in my Flutter app. I am currently on the free plan, but I have read that Functions for Local Emulator are av...
Nuthouse asked 15/6, 2023 at 20:13

3

In theory, the JDB (java debugger) allows for a single thread to be killed. In practice, is it possible? Here I attach jdb to my JVM, which has an agentlib at port 8000: $ jdb -attach 8000 > ...
Xylidine asked 18/11, 2011 at 21:40

© 2022 - 2024 — McMap. All rights reserved.