exception Questions

5

Solved

I got a problem that I absolutely can't solve on my own because I have just started using JAVA FX. I get a nasty javafx.fxml.LoadException: , but I have done exactly like a guide, but I cant get m...
Mutism asked 7/4, 2014 at 14:10

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

3

Solved

I'm trying to figure out how to obtain a stack trace after an exception is thrown in Delphi. However, when I try to read the stack in the Application.OnException event using the function below, the...
Bonne asked 8/4, 2013 at 22:18

10

Solved

In a webservice I see this code: <WebMethod()> _ Public Function dosomething() As Boolean Try If successful Then Return True Else Return False End If Catch ex As Exception Throw ex ...
Damar asked 3/12, 2008 at 11:52

4

Solved

I am currently developing REST services and throwing BadRequestException for all of the following, 1. Path parameter is invalid 2. Query parameter is invalid 4. Input request object has missing at...
Equitation asked 8/3, 2016 at 13:46

5

Solved

I am learning C++ and I am experiencing when I try and create my own exception and throw them on Linux. I've created a small test project to test my implementation and below is my exception class...
Achondroplasia asked 19/1, 2017 at 23:6

2

Solved

Consider this code: #include <iostream> #include <vector> #include <exception> void foo(std::exception const& e1) { try { std::cout << e1.what() << std::endl; ...

6

Solved

I'm trying to work with this library for telnet connections. I have called the function correctly and it executes the code below but fails giving the following error: System.Net.Sockets.SocketExce...
Andy asked 30/5, 2014 at 18:58

2

Solved

I have custom inheriting exceptions in my Python project and I want to deprecate one of them. What is the proper way of doing it? Exceptions I have: class SDKException(Exception): pass class Chil...
Sideling asked 3/11, 2020 at 9:53

3

Solved

I read a thoughtful series of blog posts about the new <system_error> header in C++11. It says that the header defines an error_code class that represents a specific error value returned by a...
Scleroma asked 29/8, 2012 at 5:24

4

Solved

For my Android application, I get several unmarshalling errors although I think I've done everything that is needed to properly save and load objects via Parcelables. Can you tell me what's wrong w...
Coelostat asked 21/12, 2012 at 21:39

5

Solved

New to Ruby, and I'm trying to figure out what idiom to use to restrict some integer values to the constructor of a class. From what I've done so far, if I raise an exception in initialize(), the ...
Codie asked 28/9, 2009 at 2:12

4

I have an issue where NUnit is telling me: "No suitable constructor was found". What causes this? I also get another message: "Exception doesn't have a stacktrace". Both messages just repeat over a...
Civilized asked 19/4, 2016 at 15:0

5

I have a simple question about exception handling. I currently have an application divided into multiple layers: controller, service, repository, and my question is the following: the exception han...
Springclean asked 23/3, 2021 at 11:12

6

I have the java configuration for the Spring Data Elaticsearch(using Transport Client) and ESTemplate. Here some except: @Configuration @EnableElasticsearchRepositories(basePackages = "subpack...

13

Solved

As soon as my code gets to my while(rs.next()) loop it produces the ResultSet is closed exception. What causes this exception and how can I correct for it? EDIT: I notice in my code that I am nest...
Meyers asked 1/6, 2009 at 16:9

11

If I ran TestNG test class it displays error ------------ org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not prox...
Oesophagus asked 27/11, 2019 at 17:19

2

I am developing a .net maui app/frontend app and randomly today began receiving the error "An unhandled win32 exception occurred in myapp.exe." with the addition Warning Alert "A deb...
Burkhardt asked 25/5, 2023 at 0:38

3

Solved

It might be obvious, but I still fail to understand the difference between throw and rethrow and when do either of those should be used?
Megdal asked 15/8, 2020 at 3:5

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...

13

Solved

I'm writing a stored procedure that needs to have a lot of conditioning in it. With the general knowledge from C#.NET coding that exceptions can hurt performance, I've always avoided using them in ...
Tav asked 21/10, 2008 at 13:37

2

Solved

$ ./runtests.py -v tests/managers/test_customer.py:CustomerManagerTest.test_register_without_subscription --ipdb ... test_register_without_subscription (tests.managers.test_customer.CustomerManag...
Perjure asked 27/12, 2013 at 9:15

10

Solved

Is there a way to determine the exception type even know you caught the exception with a catch all? Example: try { SomeBigFunction(); } catch(...) { //Determine exception type here }
Tindle asked 18/2, 2009 at 17:10

7

Solved

Lots of times in Java logs I'll get something like: Caused by: java.sql.BatchUpdateException: failed batch at org.hsqldb.jdbc.jdbcStatement.executeBatch(jdbcStatement.java:1102) at org.hsqldb.jd...
Welcher asked 13/1, 2009 at 2:12

4

Solved

I'm having a small issue with my code. For some reason, when I try to throw a string with the code below, I get an error in Visual Studio. #include <string> #include <iostream> using na...
Musjid asked 27/11, 2014 at 21:40

© 2022 - 2024 — McMap. All rights reserved.