exception Questions
5
Solved
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...
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...
2
Solved
Consider this code:
#include <iostream>
#include <vector>
#include <exception>
void foo(std::exception const& e1) {
try {
std::cout << e1.what() << std::endl;
...
Nebulous asked 14/6 at 10:4
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...
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...
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...
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...
Vast asked 30/8, 2020 at 14:15
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...
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...
3
Solved
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
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 ...
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...
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
}
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.