Top "Rethrow" questions

use for issues on rethrowing catch exception

Best practices for catching and re-throwing .NET exceptions

What are the best practices to consider when catching exceptions and re-throwing them? I want to make sure that the …

c# .net exception-handling rethrow
C++ Exceptions questions on rethrow of original exception

Will the following append() in the catch cause the rethrown exception to see the effect of append() being called? try { …

c++ exception rethrow
rethrowing python exception. Which to catch?

I'm learning to use python. I just came across this article: http://nedbatchelder.com/blog/200711/rethrowing_exceptions_in_python.html …

python exception throw rethrow
What are the differences between throws and rethrows in Swift?

After searching for some references to figure it out, -unfortunately- I could not find useful -and simple- description about understanding …

swift error-handling try-catch throws rethrow
Java error: New exception is thrown in catch block, original stack trace may be lost

try { // code which throws exception. } catch (SQLException sqlex) { logger.error("Custom message", sqlex); **throw new CustomApplicationException("Custom message", sqlex);** } In …

java exception pmd rethrow
Will exception thrown in catch block be caught by later catch blocks?

Consider the following C++ code: try { throw foo(1); } catch (foo &err) { throw bar(2); } catch (bar &err) { // Will throw …

c++ exception try-catch rethrow
rethrow java exception with new message, preserving the exception type if it is in the method declaration list

I am trying to create a helper method that will eliminate the need of having code like this: void foo() …

java exception rethrow
Powershell try/catch rethrow not propagating error (Powershell 2.0)

I have a try-catch statement within a try-catch statement. The inner catch catches the error, but the throw does not …

powershell rethrow
An Exception Handling Class

What is the best practice for handling exceptions without having to put try/catch blocks everywhere? I had the idea …

c# exception-handling try-catch rethrow