Gang Of Coders
Home
About Us
Contact Us
All Exception Handling Solutions on Gang of Coders
Total of 220 Exception Handling Solutions
Is it okay to throw NullPointerException programmatically?
Java
Exception Handling
Nullpointerexception
Throw
Objective-C Exceptions
Objective C
Exception Handling
Nserror
Why can I throw null in Java?
Java
Exception Handling
Nullpointerexception
cannot catch SQLAlchemy IntegrityError
Python
Exception
Exception Handling
Error Handling
Sqlalchemy
Using `throw;` on a modified exception
C++
Exception
Exception Handling
Language Lawyer
Throw
Are function return values automatic objects and thus guaranteed to be destructed?
C++
Exception Handling
Return
Return Value
Language Lawyer
How much footprint does C++ exception handling add
C++
Exception
Exception Handling
Embedded
Footprint
Multiple or Single Try Catch
Java
Exception Handling
Coding Style
ImageSourceConverter error for Source=null
.Net
Wpf
Image
Exception Handling
Ivalueconverter
Java if vs. try/catch overhead
Java
Exception Handling
If Statement
Try Catch
Overhead
Gradle Project: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
Java
Exception
Exception Handling
Kotlin
Does elmah handle caught exceptions as well
asp.net
.Net
Exception Handling
Elmah
Obtain a std::ostream either from std::cout or std::ofstream(file)
C++
Exception Handling
Iostream
Disabling C++ exceptions, how can I make any std:: throw() immediately terminate?
C++
Exception Handling
G++
Exit
Catching multiple exception types in one catch block
Php
Exception Handling
Laravel catch TokenMismatchException
Php
Laravel
Exception Handling
Csrf
Laravel 5
Determining exception type after the exception is caught?
C++
Exception
Exception Handling
Exception handling try catch inside catch
Java
Exception
Exception Handling
Try Catch
Nullable object must have a value?
C#
.Net
Linq to-Sql
Exception Handling
Nullable
What Exception subclasses are built into PHP?
Php
Class
Exception
Exception Handling
Raise custom Exception with arguments
Ruby on-Rails
Ruby
Exception
Exception Handling
What happens if a finally block throws an exception?
C#
Exception
Exception Handling
Try Catch-Finally
Python: One Try Multiple Except
Python
Syntax
Exception Handling
Does Java's try-with-resources catch errors or just exceptions?
Java
Exception
Junit
Exception Handling
WCF Contract Name 'IMyService' could not be found?
.Net
Wcf
Exception Handling
catch exception by pointer in C++
C++
Exception Handling
Throw
Try Catch
How can I set up .NET UnhandledException handling in a Windows service?
C#
Windows Services
Exception Handling
Unhandled Exception
Best practices for catching and re-throwing .NET exceptions
C#
.Net
Exception Handling
Rethrow
Increasing heap space in Eclipse: (java.lang.OutOfMemoryError)
Java
Eclipse
Exception Handling
C++, __try and try/catch/finally
C++
Exception Handling
Try Catch
Finally
Using throw to replace return in C++ non-void functions
C++
Exception Handling
Asp.net mvc override OnException in base controller keeps propagating to Application_Error
C#
asp.net Mvc-2
Exception Handling
Error Handling
"outsourcing" exception-handling to a decorator
Python
Exception Handling
Decorator
Python 2.6
Laravel view not found exception
Php
Laravel
Laravel 4
Exception Handling
Testing Exception Messages with Shouldly
C#
Exception Handling
Shouldly
Conditions when finally does not execute in a .net try..finally block
.Net
Exception Handling
Custom Exceptions in Clojure?
Exception Handling
Clojure
Right way to close WPF GUI application: GetCurrentProcess().Kill(), Environment.Exit(0) or this.Shutdown()
C#
Wpf
Database
Exception Handling
Close Application
Suppress warning on unused exception variable in C#
C#
Visual Studio-2008
Exception Handling
How can I throw an exception in Clojure?
Exception
Exception Handling
Clojure
Functional Programming
What do we need the PHP-exception code for? Any use case scenario?
Php
Exception
Exception Handling
Catching exception: divide by zero
C++
Exception Handling
Try-with-resources: Must I throw or catch the close() method's exceptions?
Java
Exception Handling
What really happens in a try { return x; } finally { x = null; } statement?
C#
.Net
Exception Handling
Globally catch exceptions in a WPF application?
C#
Wpf
Exception
Exception Handling
How to use ELMAH to manually log errors
C#
Exception Handling
Elmah
Error Logging
Will code in a Finally statement fire if I return a value in a Try block?
C#
.Net
Exception Handling
Try Catch
How do you implement a re-try-catch?
Java
Exception
Exception Handling
Try Catch
Exception.Message vs Exception.ToString()
C#
.Net
Exception
Exception Handling
C++ display stack trace on exception
C++
Exception
Exception Handling
Stack Trace
Logging uncaught exceptions in Python
Python
Logging
Exception Handling
Why is it bad style to `rescue Exception => e` in Ruby?
Ruby
Exception Handling
How to use RSpec's should_raise with any kind of exception?
Ruby on-Rails
Ruby
Exception Handling
Rspec
.NET Global exception handler in console application
C#
.Net
vb.net
Exception Handling
Console Application
How do I find the stack trace in Visual Studio?
.Net
Visual Studio
Debugging
Exception Handling
Stack Trace
Why are empty catch blocks a bad idea?
Exception Handling
Try Catch
Why is try {...} finally {...} good; try {...} catch{} bad?
C#
.Net
Exception Handling
Try Catch
Try Catch-Finally
Why use finally in C#?
C#
Exception Handling
Catch multiple exceptions in one line (except block)
Python
Exception
Exception Handling
Spring Boot REST service exception handling
Java
Spring
Rest
Exception Handling
Spring Boot
System.Security.SecurityException when writing to Event Log
asp.net
Windows
Iis 7
Exception Handling
Event Log
Java 8: Lambda-Streams, Filter by Method with Exception
Java
Exception Handling
Lambda
Java 8
What is ApplicationException for in .NET?
C#
.Net
Exception
Exception Handling
Throw HttpResponseException or return Request.CreateErrorResponse?
C#
Exception Handling
asp.net Web-Api
Http Status-Codes
How can I rethrow an exception in Javascript, but preserve the stack?
Javascript
Exception
Exception Handling
Stack Trace
Callstack
Node.js Best Practice Exception Handling
node.js
Exception Handling
Serverside Javascript
Does a finally block run even if you throw a new Exception?
Java
Exception Handling
Re-raise exception with a different type and message, preserving existing information
Python
Exception Handling
Polymorphism
Does 'finally' always execute in Python?
Python
Exception Handling
Try Catch-Finally
Finally
In Python, how does one catch warnings as if they were exceptions?
Python
Exception
Exception Handling
Warnings
Mockito How to mock and assert a thrown exception?
Java
Exception Handling
Junit
Mockito
Spring Resttemplate exception handling
Spring
Rest
Exception Handling
Resttemplate
How to get exception message in Python properly
Python
Exception
Exception Handling
How to throw std::exceptions with variable messages?
C++
Exception
Exception Handling
Better to 'try' something and catch the exception or test if it's possible first to avoid an exception?
Python
Exception Handling
If Statement
Try Catch
Pep
What exceptions does Newtonsoft.Json.DeserializeObject throw?
.Net
Exception
Exception Handling
json.net
Extract traceback info from an exception object
Python
Debugging
Exception Handling
Difference: std::runtime_error vs std::exception()
C++
Exception Handling
Why catch and rethrow an exception in C#?
C#
Exception Handling
Try Catch
How do I log a Python error with debug information?
Python
Exception
Logging
Exception Handling
I want to exception handle 'list index out of range.'
Python
List
Exception Handling
PHP: exceptions vs errors?
Php
Exception
Exception Handling
Error Handling
Why is UnhandledExceptionEventArgs.ExceptionObject an object and not an Exception?
.Net
Exception
Exception Handling
Unhandled Exception
Begin, Rescue and Ensure in Ruby?
Ruby on-Rails
Ruby
Exception
Exception Handling
Error Handling
Uncatchable ChuckNorrisException
Java
Exception
Exception Handling
Aop
Will Try / Finally (without the Catch) bubble the exception?
C#
.Net
vb.net
Exception Handling
catch exception that is thrown in different thread
C#
Multithreading
Exception Handling
Need to handle uncaught exception and send log file
Android
Exception Handling
Logcat
Why are we not to throw these exceptions?
C#
Exception Handling
How can I catch all the exceptions that will be thrown through reading and writing a file?
Java
Exception
File
Exception Handling
Why is "throws Exception" necessary when calling a function?
Java
Exception Handling
Unhandled Exception
Throws
Checked Exceptions
When to catch java.lang.Error?
Java
Exception
Error Handling
Exception Handling
Best Practice for Exception Handling in a Windows Forms Application?
C#
Winforms
Exception Handling
Is it possible in Java to catch two exceptions in the same catch block?
Java
Exception Handling
Try Catch
How to print full stack trace in exception?
C#
Exception Handling
Stack Trace
Is it a bad practice to catch Throwable?
Java
Exception Handling
Throwable
Visual Studio 2015 break on unhandled exceptions not working
C#
Exception Handling
Visual Studio-2015
Unhandled Exception
What's the difference between Application.ThreadException and AppDomain.CurrentDomain.UnhandledException?
C#
.Net
Winforms
Exception Handling
Is it abusive to use IDisposable and "using" as a means for getting "scoped behavior" for exception safety?
C#
Exception Handling
Raii
How to use Java-style throws keyword in C#?
C#
Java
Exception Handling
Throws
Get exception description and stack trace which caused an exception, all as a string
Python
Python 2.7
Exception Handling
Stack Trace
C++ catch blocks - catch exception by value or reference?
C++
Exception Handling
Catching exceptions with "catch, when"
C#
Exception Handling
Multiple try codes in one block
Python
Exception
Exception Handling
Try Catch
Except
Which parts of Real World Haskell are now obsolete or considered bad practice?
Haskell
Exception Handling
What is the difference between `throw new Error` and `throw someObject`?
Javascript
Object
Error Handling
Exception Handling
Throw
Is it a good practice to use try-except-else in Python?
Python
Exception
Exception Handling
Try Catch
How do I find where an exception was thrown in C++?
C++
Debugging
Exception Handling
What is the use of printStackTrace() method in Java?
Java
Exception Handling
Printstacktrace
What is the difference between `raise "foo"` and `raise Exception.new("foo")`?
Ruby
Exception
Exception Handling
How does "do something OR DIE()" work in PHP?
Php
Mysql
Exception Handling
Conditional
Disable assertions in Python
Python
Debugging
Exception Handling
Environment Variables
Assert
Should I inherit from std::exception?
C++
Exception
Exception Handling
The difference between try/catch/throw and try/catch(e)/throw e
C#
Exception Handling
Is there a difference between "throw" and "throw ex"?
C#
.Net
Exception
Exception Handling
Valid use of goto for error management in C?
C
Exception Handling
Error Handling
Goto
Good way to encapsulate Integer.parseInt()
Java
Exception Handling
Encapsulation
How do I raise an exception in Rails so it behaves like other Rails exceptions?
Ruby on-Rails
Exception
Exception Handling
How to log python exception?
Python
Exception Handling
Logging
Why is "log and throw" considered an anti-pattern?
Logging
Exception Handling
Anti Patterns
Exception handling in R
R
Exception Handling
is there a pythonic way to try something up to a maximum number of times?
Python
Exception Handling
How to determine if an exception is of a particular type
C#
asp.net Mvc
Exception Handling
How can I catch a 404?
C#
.Net
Exception Handling
Error Handling
Http Status-Code-404
Ruby custom error classes: inheritance of the message attribute
Ruby
Exception
Inheritance
Exception Handling
Custom Exceptions
Catching access violation exceptions?
C++
Exception Handling
Should methods that throw RuntimeException indicate it in method signature?
Java
Exception
Oop
Exception Handling
Use a 'try-finally' block without a 'catch' block
C#
.Net
Exception
Exception Handling
Why is exception handling bad?
Exception
Exception Handling
Error Handling
Error Reporting
Multiple try-catch or one?
Exception Handling
A good solution for await in try/catch/finally?
C#
.Net
Exception Handling
Async Await
C# 5.0
hasattr() vs try-except block to deal with non-existent attributes
Python
Exception
Exception Handling
Attributes
Hasattr
Raise exception vs. return None in functions?
Python
Exception Handling
Service has zero application (non-infrastructure) endpoints
.Net
Wcf
Exception Handling
Wcf Configuration
Wcf Endpoint
Why does this assert throw a format exception when comparing structures?
C#
Unit Testing
Exception Handling
Mstest
String Formatting
Exceptions in Yesod
Json
Haskell
Exception Handling
Yesod
How to write trycatch in R
R
Exception
Exception Handling
Try Catch
R Faq
This could be due to the service endpoint binding not using the HTTP protocol
Wcf
Exception Handling
Wcf Binding
net.tcp
Wcf Endpoint
Find the inner-most exception without using a while loop?
C#
.Net
Exception
Exception Handling
While Loop
Who is calling the Java Thread interrupt() method if I'm not?
Java
Multithreading
Exception
Exception Handling
Ideal way to set global uncaught exception Handler in Android
Android
Exception Handling
Uncaught Exception
Are nested Try/Catch blocks a bad idea?
.Net
vb.net
Exception Handling
What is the point of finally in a try catch/except finally statement
Exception Handling
Finally
Why does C# allow you to 'throw null'?
C#
Exception Handling
Why do we need the "finally" clause in Python?
Python
Exception Handling
Try Finally
When to use throws in a Java method declaration?
Java
Exception Handling
Throws
When and how should I use exception handling?
C++
Windows
Exception
Exception Handling
What is a suppressed exception?
Java
Exception
Exception Handling
Try with-Resources
What destructors are run when the constructor throws an exception?
C++
Constructor
Exception Handling
Destructor
Catching FULL exception message
Powershell
Exception
Exception Handling
Get connection string from App.config
C#
ado.net
Exception Handling
Connection String
App Config
Exception handling in shell scripting?
Bash
Shell
Exception Handling
throwing an exception in objective-c/cocoa
Objective C
Cocoa
Exception Handling
Exception handling in Haskell
Haskell
Exception Handling
When I `throw` something, where is it stored in memory?
C++
Exception
Exception Handling
Use tryCatch skip to next value of loop upon error?
R
Error Handling
Exception Handling
Try Catch
Report for exceptions from Google Analytics analytics.js exception tracking
Exception Handling
Google Analytics
Why do Java people frequently consume exceptions silently?
Java
Exception
Exception Handling
Do you really need the 'finally' block
Java
Exception Handling
Throws or try-catch
Java
Exception
Exception Handling
Try Catch
Throws
Android exception handling best practice?
Java
Android
Exception Handling
Elmah not working with asp.net site
asp.net
Exception Handling
Elmah
How to test with Python's unittest that a warning has been thrown?
Python
Unit Testing
Exception Handling
Warnings
How to efficiently use try...catch blocks in PHP
Php
Exception Handling
Try Catch
VS2010 does not show unhandled exception message in a WinForms Application on a 64-bit version of Windows
C#
Visual Studio-2010
Exception Handling
Throwing exceptions in a PHP Try Catch block
Php
Exception Handling
Drupal 6
Try Catch
Handling InterruptedException in Java
Java
Multithreading
Exception Handling
Interrupted Exception
Using Global Exception Handling on android
Android
Exception Handling
Catching multiple exceptions at once in Scala
Exception
Scala
Exception Handling
Pattern Matching
Try Catch
Throwing exception from CompletableFuture
Java
Exception
Exception Handling
Java 8
Completable Future
.NET - What's the best way to implement a "catch all exceptions handler"
C#
.Net
Exception
Exception Handling
Is Try::Tiny still recommended for exception handling in Perl 5.14 or later?
Perl
Exception Handling
Design patterns: exception / error handling
Design Patterns
Exception Handling
How do I stop a program when an exception is raised in Python?
Python
Exception Handling
When is it OK to catch a RuntimeException
Java
Exception Handling
Why is the Catch(Exception) almost always a bad Idea?
Java
Exception
Exception Handling
ASP.NET Web API: Non-descriptive 500 Internal Server Error
Exception Handling
asp.net Web-Api
How to fix "'throw' of exception caught locally"?
Javascript
node.js
Rest
Exception Handling
Async Await
How to override $exceptionHandler implementation
Javascript
Exception Handling
Angularjs
If you're in the "we don't use exceptions" camp, then how do you use the standard library?
C++
Error Handling
Exception Handling
How can I add a message to an exception without losing any information in C#?
C#
Exception
Exception Handling
Throwing ArgumentNullException
C#
.Net
Exception
Exception Handling
Ruby: Continue a loop after catching an exception
Ruby
Exception Handling
Loops
javax.persistence.NoResultException: No entity found for query
Java
Hibernate
Jpa
Exception Handling
Null
Catching panics in Golang
Exception Handling
Error Handling
Go
Return in catch block?
C#
.Net
Exception Handling
How to check if IOException is Not-Enough-Disk-Space-Exception type?
C#
.Net
Exception Handling
Ioexception
Diskspace
How can I catch UniqueKey Violation exceptions with EF6 and SQL Server?
C#
Sql Server
Exception Handling
Entity Framework-6
Unique Key
WPF global exception handler
C#
.Net
Wpf
Exception
Exception Handling
Re-throwing exception in NodeJS and not losing stack trace
Javascript
node.js
Exception Handling
expect.js
Best way to check for inner exception?
C#
.Net
Exception
Exception Handling
Exception traceback is hidden if not re-raised immediately
Python
Exception
Exception Handling
Try Catch
Traceback
Dart catch clause
Exception Handling
Try Catch
Dart
Catching an exception while using a Python 'with' statement
Python
Exception Handling
Add custom message to thrown exception while maintaining stack trace in Java
Java
Exception
Exception Handling
Performance of try-catch in php
Php
Performance
Exception Handling
Try Catch
Best way to throw exceptions in JNI code?
Java
Exception Handling
Java Native-Interface
Why does NotImplementedException exist?
.Net
Exception
Exception Handling
Notimplementedexception
Notsupportedexception
How to define custom TraceListener in app.config
.Net
Configuration
Exception Handling
Trace
Trace Listener
How do I add information to an exception message in Ruby?
Ruby
Exception
Exception Handling
Catching exceptions thrown from native code running on Android
Android
Exception Handling
Java Native-Interface
Android Ndk
Nullpointerexception
How to signal "not implemented yet"?
Ruby
Exception Handling
Coding Style
Conventions
How to throw a C++ exception
C++
Exception Handling
SOAP faults or results object?
Web Services
Exception Handling
Soapfault
Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state
Javascript
Exception Handling
Websocket
How do you implement global iPhone Exception Handling?
Iphone
Objective C
Cocoa Touch
Debugging
Exception Handling
Catch two exceptions in the same catch block?
C#
.Net
Exception
Exception Handling
Ruby Exceptions -- Why "else"?
Ruby
Exception Handling
Java - is it bad practice to do a try/catch inside a try/catch?
Java
Exception
Exception Handling
Try Catch
Do you (really) write exception safe code?
C++
Exception Handling
Why use Finally in Try ... Catch
.Net
vb.net
Exception Handling
Try Catch-Finally
How to avoid a NoRouteToHostException?
Java
Networking
Sockets
Exception Handling
Python "raise from" usage
Python
Python 3.x
Syntax
Exception Handling
If an Exception happens within a using statement does the object still get disposed?
C#
Exception Handling
Try Catch
Using
Catch statement does not catch thrown error
Javascript
Jquery
Exception
Exception Handling
Try Catch
Catch an exception thrown by an async void method
C#
Asynchronous
Exception Handling
Async Await
Task Parallel-Library
Why GCC compiled C program needs .eh_frame section?
C
Assembly
Exception Handling
X86
Elf
try / else with return in try block
Python
Exception Handling
Are destructors called after a throw in C++?
C++
Exception Handling
Try Catch
Raii
Exception handling : throw, throws and Throwable
Java
Exception Handling
Throw
Throws
Throwable