Questions tagged [nested-exceptions]
26 questions
1
vote
1 answer
I keep getting 'could not get jdbc connection nested exception'
I am trying to use CAS server locally with my local DB, however I keep getting could not get jdbc connection nested exception error. I have my deployerconfigcontext setup in the followig way

user2456195
- 67
- 2
- 10
1
vote
1 answer
Is it possible to create a memory leak by using std::exception_ptr
If I define an exception class
class Exception : public std::runtime_error
{
/*...*/
private:
std::exception_ptr next;
std::exception_ptr prev;
}
in which I refer to pending exceptions by next and new thrown exceptions while this is…

Ralph Tandetzky
- 22,780
- 11
- 73
- 120
1
vote
1 answer
What class members do Throwable and Exception have in the D programming language?
I'm particularly interested, how I can produce nested exception and how I can access those afterwards when I handle them. A link to some documentation would be appreciated. I have already tried to find it on the D website. No success though. I'm…

Ralph Tandetzky
- 22,780
- 11
- 73
- 120
0
votes
0 answers
How to trace exceptions in a domain context in C++11?
When an exception is thrown, it would be nice to be able to add information about how the error could happen, as the exception propagates up the call stack.
With information i don't mean technical info (e.g. Error in /src/foo.cpp:26), but something…
0
votes
0 answers
Empty the exception stack in php
In a project where I use twig template engine, I use my own try/catch blocks for error handling. This works quite reliable so far.
However, twig also has its own exception handling. Every exception thrown in the software and handled by my catch is…

Marco
- 3,470
- 4
- 23
- 35
0
votes
1 answer
std::nested_exception and polymorphism - Is this the best that can be done?
std::nested_exceptions are nice when all you want to do is calling what(), but accessing the interface of other exception types gets ugly.
Let us suppose I have two exception classes which store some additional information:
/* CODE BLOCK 1 */
class…

Sergio Losilla
- 730
- 1
- 5
- 14
0
votes
1 answer
How to print Exceptions of a nested loop?
I want to print all the exception statements from within the inner try to the catch of the outside try. Is there any way to do this without changing the inner try-catch block
def test_nested_exceptions():
try:
try:
raise…
0
votes
1 answer
Is it good practice to throw custom exception from catch statement?
I have command line tool which runs tests. There is test runner class, which does some preparation before test execution and then runs the test and makes a report.
Is it OK if my classes catch an exception and throw new custom exception to the upper…

Elephant
- 675
- 1
- 8
- 18
0
votes
1 answer
Nested exception as return type for WCF service
I have a c# WCF service with the following interface definition:
[ServiceContract]
[ServiceKnownType(typeof(Exception))]
[ServiceKnownType(typeof(ArgumentException))]
[ServiceKnownType(typeof(ArgumentNullException))]
public…

Cleo
- 620
- 2
- 10
- 32
0
votes
2 answers
How Should I Move A File On Exception?
The requirement:
On an error (thrown exception), the file being processed should be moved to the folder for files with errors (app.config setting).
The problem:
The only way that I can of handling this is to have a nested Try/Catch inside of the…

RiddlerDev
- 7,370
- 5
- 46
- 62
-1
votes
2 answers
Exception of internal blocks will be catch by main try-catch but i need to raise them
When this code raise NotFoundException the exception of main block will be raised, but I would like to raise NotFoundException, how can I manage it?
try {
if (x > y) {
throw new NotFoundException("entity is not found");
}
} catch…

Fariba
- 693
- 1
- 12
- 27