Gang Of Coders
Home
About Us
Contact Us
All Exception Solutions on Gang of Coders
Total of 508 Exception Solutions
How can I safely create a nested directory?
Python
Exception
Path
Directory
Operating System
How to deserialize a JObject to .NET object
.Net
Json
Exception
Serialization
json.net
python: How do I know what type of exception occurred?
Python
Exception
How to see exception detail in debugger without assigning variable to exception?
C#
Visual Studio
Exception
cannot catch SQLAlchemy IntegrityError
Python
Exception
Exception Handling
Error Handling
Sqlalchemy
Using `throw;` on a modified exception
C++
Exception
Exception Handling
Language Lawyer
Throw
Getting the exception value in Python
Python
Exception
EsRejectedExecutionException in elasticsearch for parallel search
Exception
Elasticsearch
Why Create Custom Exceptions?
C#
.Net
Exception
How much footprint does C++ exception handling add
C++
Exception
Exception Handling
Embedded
Footprint
How can I get around the lack of a finally block in PHP?
Php
Exception
Resource Cleanup
Is it possible to catch out of memory exception in java?
Java
Exception
Out of-Memory
Lots of first chance Microsoft.CSharp.RuntimeBinderExceptions thrown when dealing with dynamics
C#
Exception
Dynamic
Does C++ support 'finally' blocks? (And what's this 'RAII' I keep hearing about?)
C++
Exception
Raii
Finally
C++ Faq
EF Exception: String or binary data would be truncated. The statement has been terminated.?
C#
Sql Server
Entity Framework
Exception
WCF ExceptionShielding Error ID does not match up with handlingInstanceId passed to Handler
.Net
Wcf
Exception
Enterprise Library
Fault
Can we use "return" in finally block
Java
Exception
Try Catch-Finally
Finally
C++ catching all exceptions
C++
Exception
Why are SpyJMSExceptions still thrown after recycling the client JBoss connection to remote queues?
Java
Exception
Jboss
Jms
Swift-3 error: '-[_SwiftValue unsignedIntegerValue]: unrecognized selector
Ios
Xcode
Exception
Swift3
Gradle Project: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
Java
Exception
Exception Handling
Kotlin
Is it possible to catch an exception of lambda type?
C++
Exception
Lambda
Finding out what exceptions a method might throw in C#
C#
.Net
Exception
Can the C++ `new` operator ever throw an exception in real life?
C++
Exception
New Operator
Out of-Memory
Re-raise Python exception and preserve stack trace
Python
Exception
Stack Trace
How to log formatted message, object array, exception?
Java
Exception
Logging
Slf4j
Unable to run JUnit test with PowerMockRunner
Java
Exception
Junit
Powermock
Custom Exception in scala
Scala
Exception
C# Image.Clone Out of Memory Exception
C#
Image
Exception
What's the best way to raise an exception in C#?
C#
Exception
Determining exception type after the exception is caught?
C++
Exception
Exception Handling
What exception to throw from a property setter?
C#
Validation
Exception
Properties
I'm getting a "Does not implement IController" error on images and robots.txt in MVC2
asp.net Mvc
Exception
Routing
(Unknown Source) in Exception stack trace
Java
Exception
Stack Trace
Exception handling try catch inside catch
Java
Exception
Exception Handling
Try Catch
python try:except:finally
Python
Exception
File Io
Try Catch
What Exception subclasses are built into PHP?
Php
Class
Exception
Exception Handling
How to fix "'System.AggregateException' occurred in mscorlib.dll"
C#
.Net
Exception
Aggregateexception
Raise custom Exception with arguments
Ruby on-Rails
Ruby
Exception
Exception Handling
What kind of exception should I use for "No Record Found" ? (C#)
C#
Exception
How to raise an exception in VB.NET
vb.net
Exception
functools.partial on class method
Python
Exception
Methods
Functools
Visual Studio not breaking on user-unhandled exceptions
Debugging
Exception
Visual Studio-2012
Ide
What happens if a finally block throws an exception?
C#
Exception
Exception Handling
Try Catch-Finally
Does Java's try-with-resources catch errors or just exceptions?
Java
Exception
Junit
Exception Handling
Catching line numbers in ruby exceptions
Ruby
Exception
More Elegant Exception Handling Than Multiple Catch Blocks?
C#
.Net
Exception
Error Handling
Throwing ArgumentNullException in constructor?
C#
Exception
Constructor
Null
Arguments
Dealing with "java.lang.OutOfMemoryError: PermGen space" error
Exception
Memory Leaks
Out of-Memory
Java 6
Permgen
What does a single "throw;" statement do?
C++
Exception
Throw
Why my exception class needs to be serialized?
Java
Exception
Serialization
Deserialization
Serialversionuid
.NET: How to convert Exception to string?
C#
.Net
Exception
Tostring
httpclient exception "org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection"
Java
Exception
Httpclient
java.rmi.ConnectException: Connection refused to host: 127.0.1.1;
Java
Exception
Connection
Rmi
Remoteobject
When catch doesn't actually catch anything
Java
Exception
Try Catch
Comparator
Why is .NET exception not caught by try/catch block?
C#
.Net
Exception
Antlr
Exception vs Assert?
C++
Exception
Throw
How can I write custom Exceptions?
Java
Exception
Java exception not caught
Java
Exception
Try Catch
How to get Python exception text
C++
Python
Exception
Boost Python
Who deletes the memory allocated during a "new" operation which has exception in constructor?
C++
Exception
Memory Leaks
Constructor
Is there a Java equivalent of C#'s InvalidOperationException?
Java
Exception
Invalidoperationexception
Is there a list of .Net Exception types and advice on when to use them?
.Net
Exception
Java List.add() UnsupportedOperationException
Java
List
Exception
Arraylist
Unsupportedoperation
Throwing exceptions in Scala, what is the "official rule"
Scala
Exception
Try Catch
Either
TypeNotPresentExceptionProxy
Java
Maven
Exception
Junit
Surefire
How to catch a Firebase Auth specific exceptions
Java
Android
Exception
Firebase
Firebase Authentication
What to do on TransactionTooLargeException
Android
Exception
How can I pass a collection of exceptions as a root cause?
Java
Exception
RAII vs. exceptions
C++
Exception
Raii
Destructor
Is there any valid reason to ever ignore a caught exception
C#
Exception
Making Python's `assert` throw an exception that I choose
Python
Exception
Assert
Identifying Exception Type in a handler Catch Block
C#
Exception
Why are C++ STL iostreams not "exception friendly"?
C++
Exception
Stl
Iostream
Java - How to do Python's Try Except Else
Java
Python
Exception
Is it OK to try/catch something just to check if an exception was thrown or not?
Java
Exception
When to use InvalidOperationException or NotSupportedException?
C#
.Net
Exception
Invalidoperationexception
Notsupportedexception
How to define custom exception class in Java, the easiest way?
Java
Exception
Inheritance
SQL server 2012. Exception: attempted to read or write protected memory (MS.VS.OLE.Interop)
Sql Server
Exception
How to avoid checking for null values in method chaining?
Java
Exception
Nullpointerexception
Null
How to make sure you don't get WCF Faulted state exception?
Wcf
Exception
Wcf Client
JUnit: Possible to 'expect' a wrapped exception?
Java
Exception
Junit
How to set the InnerException of custom Exception class from its constructor
C#
.Net
Exception
Logging
Reflection
What does the error "the exec task needs a command to execute" mean?
C#
.Net
Exception
Compiler Construction
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
Connection Java - MySQL : Public Key Retrieval is not allowed
Java
Mysql
Exception
Connector
If you shouldn't throw exceptions in a destructor, how do you handle errors in it?
C++
Exception
Destructor
Raii
What throws an IOException in Java?
Java
Exception
Io
Ioexception
connect failed: ECONNREFUSED
Java
Android
Exception
Servlets
Connect
Why vector access operators are not specified as noexcept?
C++
Exception
C++11
Stl
Noexcept
Raise warning in Python without interrupting program
Python
Exception
Error Handling
Warnings
ThreeTen-Backport error on Android - ZoneRulesException: No time-zone data files registered
Java
Android
Exception
Jsr310
Threetenbp
Python, mock: raise exception
Python
Unit Testing
Exception
Mocking
How do I check if a variable exists?
Python
Exception
Variables
How do I use Assert.Throws to assert the type of the exception?
C#
Exception
Nunit
Assertion
Globally catch exceptions in a WPF application?
C#
Wpf
Exception
Exception Handling
What is the correct way to make a custom .NET Exception serializable?
.Net
Exception
Serialization
How to catch and print the full exception traceback without halting/exiting the program?
Python
Exception
Try Catch
Traceback
How to print an exception in Python?
Python
Exception
Error Handling
Which part of throwing an Exception is expensive?
Java
Performance
Exception
Difference between java.lang.RuntimeException and java.lang.Exception
Java
Exception
How can I solve "java.lang.NoClassDefFoundError"?
Java
Exception
Package
Noclassdeffounderror
Catch a thread's exception in the caller thread?
Python
Multithreading
Exception
How do I create a custom Error in JavaScript?
Javascript
Exception
When to choose checked and unchecked exceptions
Java
Exception
Checked Exceptions
How do you test that a Python function throws an exception?
Python
Unit Testing
Exception
e.printStackTrace equivalent in python
Java
Python
Exception
Stack Trace
How do you implement a re-try-catch?
Java
Exception
Exception Handling
Try Catch
When is it right for a constructor to throw an exception?
Exception
Language Agnostic
Constructor
When should I use Debug.Assert()?
Language Agnostic
Exception
Testing
Assertions
Defensive Programming
How can I get the line number which threw exception?
C#
Exception
Exception.Message vs Exception.ToString()
C#
.Net
Exception
Exception Handling
C++ display stack trace on exception
C++
Exception
Exception Handling
Stack Trace
Custom exception type
Javascript
Exception
Why does this iterative list-growing code give IndexError: list assignment index out of range?
Python
List
Exception
Can constructors throw exceptions in Java?
Java
Exception
Constructor
Handling exceptions from Java ExecutorService tasks
Java
Multithreading
Exception
Executorservice
Threadpoolexecutor
Exception thrown inside catch block - will it be caught again?
Java
Exception
django MultiValueDictKeyError error, how do I deal with it
Python
Django
Exception
Flutter: Unhandled Exception: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized
Flutter
Dart
Exception
How can I write a `try`/`except` block that catches all exceptions?
Python
Exception
How do I catch a numpy warning like it's an exception (not just for testing)?
Python
Exception
Numpy
Warnings
Divide by-Zero
Throw keyword in function's signature
C++
Exception
How do I raise the same Exception with a custom message in Python?
Python
Exception
Message
throw Error('msg') vs throw new Error('msg')
Javascript
Exception
Could not load file or assembly ... The parameter is incorrect
C#
Exception
Compiler Construction
Compiler Errors
Why not use exceptions as regular flow of control?
Exception
Language Agnostic
How using try catch for exception handling is best practice
C#
.Net
Exception
Try Catch
How to handle AccessViolationException
C#
.Net
Exception
Com
Process State-Exception
How to properly ignore exceptions
Python
Exception
Try Except
Causes of getting a java.lang.VerifyError
Java
Exception
Deployment
Verifyerror
Differences between Exception and Error
Java
Exception
Throwable
Log exception with traceback in python
Python
Exception
Logging
Error Handling
java.net.MalformedURLException: no protocol
Java
Xml
Exception
Proper use of errors
Exception
Typescript
Catch multiple exceptions in one line (except block)
Python
Exception
Exception Handling
How do I get ruby to print a full backtrace instead of a truncated one?
Ruby
Exception
Stack Trace
Visual Studio: How to break on handled exceptions?
Visual Studio
Exception
Debugging
Android, ListView IllegalStateException: "The content of the adapter has changed but ListView did not receive a notification"
Android
Exception
Listview
Adapter
Is it good practice to make the constructor throw an exception?
Java
Exception
Constructor
Adding information to an exception?
Python
Exception
What is ApplicationException for in .NET?
C#
.Net
Exception
Exception Handling
What exceptions should be thrown for invalid or unexpected parameters in .NET?
C#
.Net
vb.net
Exception
Is there a way to dump a stack trace without throwing an exception in java?
Java
Debugging
Exception
Logging
Stack Trace
What is difference between Errors and Exceptions?
Java
Exception
How do you catch this exception?
Python
Django
Exception
How to get the name of an exception that was caught in Python?
Python
Exception
Returning from a finally block in Java
Java
Exception
Return
Try Catch-Finally
What is the difference between Raising Exceptions vs Throwing Exceptions in Ruby?
Ruby
Exception
ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView
Android
Exception
Listview
Adapter
BaseException.message deprecated in Python 2.6
Python
Exception
Deprecated
How can I rethrow an exception in Javascript, but preserve the stack?
Javascript
Exception
Exception Handling
Stack Trace
Callstack
Exception thrown in catch and finally clause
Java
Exception
Can I catch multiple Java exceptions in the same catch clause?
Java
Exception
Try Catch
Multi Catch
What is the proper way to display the full InnerException?
C#
Exception
Inner Exception
file_put_contents(meta/services.json): failed to open stream: Permission denied
Php
Exception
Laravel
Laravel 4
What are the best practices for catching and re-throwing exceptions?
Php
Exception
jQuery Ajax error handling, show custom exception messages
Jquery
Ajax
Exception
How to create a custom exception type in Java?
Java
Exception
Turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server
C#
Wcf
Exception
Wcf Data-Services
How to fix java.net.SocketException: Broken pipe?
Java
Exception
Post
Sockets
Why doesn't Java allow generic subclasses of Throwable?
Java
Generics
Exception
Language Design
python exception message capturing
Python
Exception
Logging
Except
Java exception not caught?
Java
Exception
Try Catch
Safe integer parsing in Ruby
Ruby
String
Exception
Integer
String Parsing
Official reasons for "Software caused connection abort: socket write error"
Java
Exception
Sockets
Tomcat
Stack Trace
"Inner exception" (with traceback) in Python?
Python
Exception
Error Handling
Understanding checked vs unchecked exceptions in Java
Java
Exception
Runtimeexception
Checked Exceptions
Unchecked Exception
In Python, how does one catch warnings as if they were exceptions?
Python
Exception
Exception Handling
Warnings
Use NUnit Assert.Throws method or ExpectedException attribute?
C#
Unit Testing
Exception
Nunit
Assert
Which exception should I raise on bad/illegal argument combinations in Python?
Python
Exception
Arguments
What is the intended use of the optional "else" clause of the "try" statement in Python?
Python
Exception
Why aren't variables declared in "try" in scope in "catch" or "finally"?
C#
Java
Exception
Scope
Language Design
How to save traceback / sys.exc_info() values in a variable?
Python
Python 2.7
Exception
How to handle exceptions in a list comprehensions?
Python
Exception
List Comprehension
Why is a ConcurrentModificationException thrown and how to debug it
Java
Exception
Collections
Concurrentmodification
How to re-raise an exception in nested try/except blocks?
Python
Exception
Nested
Raise
How to get exception message in Python properly
Python
Exception
Exception Handling
How to throw std::exceptions with variable messages?
C++
Exception
Exception Handling
Python: Is it bad form to raise exceptions within __init__?
Python
Exception
How to create custom exceptions in Java?
Java
Exception
Best practice: AsyncTask during orientation change
Android
Multithreading
Exception
Android Studio IDE: Break on Exception
Debugging
Exception
Android Studio
Breakpoints
Manually raising (throwing) an exception in Python
Python
Exception
What exceptions does Newtonsoft.Json.DeserializeObject throw?
.Net
Exception
Exception Handling
json.net
Troubleshooting "Related Field has invalid lookup: icontains"
Exception
Django Admin
How slow are .NET exceptions?
C#
.Net
Performance
Exception
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Android
Exception
Android Asynctask
Android Fragments
Illegalstateexception
.NET: Which Exception to Throw When a Required Configuration Setting is Missing?
.Net
Exception
Configuration
Why doesn't Java allow to throw a checked exception from static initialization block?
Java
Exception
Static Initializer
Does it make sense to do "try-finally" without "catch"?
Java
Exception
Why doesn't await on Task.WhenAll throw an AggregateException?
.Net
Exception
Asynchronous
Tap
MaxJsonLength exception in ASP.NET MVC during JavaScriptSerializer
asp.net Mvc
Exception
Serialization
Jsonresult
Why is exception.printStackTrace() considered bad practice?
Java
Exception
Stack Trace
Printstacktrace
How do I import the Django DoesNotExist exception?
Django
Unit Testing
Exception
How to catch many exceptions at the same time in Kotlin?
Kotlin
Exception
How can I throw an exception in C?
C
Exception
Syntax
Java / Android - How to print out a full stack trace?
Java
Android
Exception
Stack
Stack Trace
Given final block not properly padded
Java
Exception
Encryption
Cryptography
javax.crypto
How do I log a Python error with debug information?
Python
Exception
Logging
Exception Handling
When should I really use noexcept?
C++
C++11
Exception
Noexcept
Azure table storage returns 400 Bad Request
C#
Azure
Exception
Azure Table-Storage
PHP: exceptions vs errors?
Php
Exception
Exception Handling
Error Handling
Do I need to `return` after `throw` in JavaScript?
Javascript
Exception
Error Handling
How to use wait and notify in Java without IllegalMonitorStateException?
Java
Multithreading
Exception
Java Threads
When to use an assertion and when to use an exception
Java
Exception
Assertion
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
Sequence contains no matching element
C#
Linq
Exception
How can I read a text file in Android?
Java
Android
Exception
Inputstream
Should I use an exception specifier in C++?
C++
Function
Exception
Throw
Specifier
C++ Exceptions questions on rethrow of original exception
C++
Exception
Rethrow
Design by contract using assertions or exceptions?
Exception
Assert
Design by-Contract
throw new std::exception vs throw std::exception
C++
Exception
Uncatchable ChuckNorrisException
Java
Exception
Exception Handling
Aop
try/catch versus throws Exception
Java
Exception
Why does writeObject throw java.io.NotSerializableException and how do I fix it?
Java
Exception
Serialization
Notserializableexception
How do exceptions work (behind the scenes) in c++
C++
Performance
Exception
Throw
Try Catch
Test expected exceptions in Kotlin
Unit Testing
Kotlin
Testing
Exception
Junit4
Is there anything like .NET's NotImplementedException in Java?
Java
.Net
Exception
Cost of exception handlers in Python
Python
Performance
Exception
Micro Optimization
How can I catch all the exceptions that will be thrown through reading and writing a file?
Java
Exception
File
Exception Handling
Best practices: throwing exceptions from properties
C#
.Net
Exception
Properties
Troubleshooting BadImageFormatException
C#
.Net
Exception
Null check chain vs catching NullPointerException
Java
Exception
Nullpointerexception
Null
Custom Error-Handling
What is a good way to handle exceptions when trying to read a file in python?
Python
Python 2.7
Exception
File Io
When to catch java.lang.Error?
Java
Exception
Error Handling
Exception Handling
Catch multiple exceptions at once?
C#
.Net
Exception
Why do I get an UnsupportedOperationException when trying to remove an element from a List?
Java
Exception
List
Arraylist
Passing multiple error classes to ruby's rescue clause in a DRY fashion
Ruby
Exception
Rescue
How can I propagate exceptions between threads?
C++
Multithreading
Exception
Best practices for exception management in Java or C#
C#
Java
Exception
Error Handling
IllegalArgumentException or NullPointerException for a null parameter?
Java
Exception
Null
Nullpointerexception
Illegalargumentexception
Image.Save(..) throws a GDI+ exception because the memory stream is closed
C#
Image
Exception
Gdi+
What is a "first chance exception"?
.Net
Visual Studio
Debugging
Exception
First Chance-Exception
What exception classes are in the standard C++ library
C++
Exception
C++11
Stl
ASP.NET custom error page - Server.GetLastError() is null
asp.net
Exception
Web Applications
Custom Error-Pages
When should an IllegalArgumentException be thrown?
Java
Exception
Illegalargumentexception
Best exception for an invalid generic type argument
C#
Generics
Exception
android View not attached to window manager
Android
Exception
Is there a difference between "raise exception()" and "raise exception" without parenthesis?
Python
Exception
What are the effects of exceptions on performance in Java?
Java
Performance
Exception
Should a retrieval method return 'null' or throw an exception when it can't produce the return value?
Java
Exception
Error Handling
Null
Capturing Ctrl-c in ruby
Ruby
Exception
Copy Paste
Why can't yield return appear inside a try block with a catch?
C#
Exception
Yield
Multiple try codes in one block
Python
Exception
Exception Handling
Try Catch
Except
Unreachable code, but reachable with an exception
C#
Exception
Unreachable Code
Is it a good practice to use try-except-else in Python?
Python
Exception
Exception Handling
Try Catch
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was
C#
Wpf
Exception
Task
Task Parallel-Library
Difference between C++03 throw() specifier C++11 noexcept
C++
Exception
C++11
Throw
Noexcept
Setting Precedence of Multiple @ControllerAdvice @ExceptionHandlers
Spring Mvc
Exception
Mockito test a void method throws an exception
Java
Exception
Mocking
Mockito
How to add manifest permission to an application?
Android
Exception
Android Manifest
Difference between OperationCanceledException and TaskCanceledException?
C#
Exception
Asynchronous
Task
Why is a segmentation fault not recoverable?
C++
C
Exception
Segmentation Fault
What is the difference between `raise "foo"` and `raise Exception.new("foo")`?
Ruby
Exception
Exception Handling
What could this be about? [TsLint Error: "Promises must be handled appropriately"]
Javascript
Typescript
Asynchronous
Exception
Tslint
Should I inherit from std::exception?
C++
Exception
Exception Handling
Is there a difference between "throw" and "throw ex"?
C#
.Net
Exception
Exception Handling
What is the proper way to rethrow an exception in C#?
C#
.Net
Exception
Python: How to ignore an exception and proceed?
Python
Exception
What is a StackOverflowError?
Java
Exception
Memory Leaks
Out of-Memory
Stack Overflow
The case against checked exceptions
Java
Exception
Checked Exceptions
Should I always specify an exception type in `except` statements?
Python
Exception
Pep8
Reraise (same exception) after catching an exception in Ruby
Ruby
Exception
throws Exception in finally blocks
Java
Exception
Try Catch
Finally
Debug.Assert vs Exception Throwing
C#
Exception
Assertions
How do I raise an exception in Rails so it behaves like other Rails exceptions?
Ruby on-Rails
Exception
Exception Handling
Input string was not in a correct format
C#
Exception
Formatexception
Getting android.content.res.Resources$NotFoundException: exception even when the resource is present in android
Android
Exception
Layout
Resources
Landscape
How do you assert that a certain exception is thrown in JUnit 4 tests?
Java
Exception
Junit
Junit4
Assert
Difference between e.getMessage() and e.getLocalizedMessage()
Java
Exception
Which, and why, do you prefer Exceptions or Return codes?
Language Agnostic
Exception
Eclipse - java.lang.ClassNotFoundException
Java
Eclipse
Exception
Maven 2
How can I manually return or throw a validation error/exception in Laravel?
Php
Laravel
Validation
Exception
Error Handling
Generic catch for python
Python
Exception
Could not load file or assembly ... An attempt was made to load a program with an incorrect format (System.BadImageFormatException)
C#
Exception
Console Application
Badimageformatexception
Javascript exception stack trace
Javascript
Exception
In Java, when should I create a checked exception, and when should it be a runtime exception?
Java
Exception
How do I increase the number of displayed lines of a Java stack trace dump?
Java
Exception
How can I know which exceptions might be thrown from a method call?
Python
Exception
How do I check "no exception occurred" in my MSTest unit test?
C#
Unit Testing
Exception
Mstest
Ruby custom error classes: inheritance of the message attribute
Ruby
Exception
Inheritance
Exception Handling
Custom Exceptions
When to throw an exception?
Exception
Language Agnostic
The given key was not present in the dictionary. Which key?
C#
Exception
Generics
Dictionary
javax.xml.bind.JAXBException Implementation of JAXB-API has not been found on module path or classpath
Xml
Exception
Jaxb
Bind
Java 9
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
Why catch an exception as reference-to-const?
C++
Exception
Constants
How to rethrow the same exception in SQL Server
Sql
Sql Server
Database
Tsql
Exception
In Python, what's the difference between 'except Exception as e' and 'except Exception, e'
Python
Exception
Is there a throws keyword in C# like in Java?
C#
Java
Exception
Throw
Throws
What does "Fatal error: Unexpectedly found nil while unwrapping an Optional value" mean?
Swift
Exception
Error Handling
Is there a standard java exception class that means "The object was not found"?
Java
Exception
Standard Library
What causing this "Invalid length for a Base-64 char array"
.Net
asp.net
Exception
Viewstate
hasattr() vs try-except block to deal with non-existent attributes
Python
Exception
Exception Handling
Attributes
Hasattr
java.lang.IllegalStateException in .NET?
Java
.Net
Exception
Why do Double.parseDouble(null) and Integer.parseInt(null) throw different exceptions?
Java
Exception
Nullpointerexception
Numberformatexception
Rethrowing exceptions in Java without losing the stack trace
Java
Exception
Intermittent asp.net mvc exception: “A public action method ABC could not be found on controller XYZ.”
asp.net Mvc
Exception
Print the stack trace of an exception
Java
Exception
Exception NoClassDefFoundError for CacheProvider
Java
Hibernate
Spring
Exception
Web Applications
Should I use AppDomain.CurrentDomain.BaseDirectory or System.Environment.CurrentDirectory?
C#
Exception
How to write trycatch in R
R
Exception
Exception Handling
Try Catch
R Faq
What's a good way to extend Error in JavaScript?
Javascript
Exception
Error Handling
Python exception chaining
Python
Exception
Coding Style
Python 2.x
Catch exception and continue try block in Python
Python
Exception
C# equivalent to Java's Exception.printStackTrace()?
C#
.Net
Exception
Stack Trace
Does a locked object stay locked if an exception occurs inside it?
C#
.Net
Multithreading
Exception
Locking
Find the inner-most exception without using a while loop?
C#
.Net
Exception
Exception Handling
While Loop
UnsupportedOperationException at java.util.AbstractList.add
Java
List
Exception
Abstract Class
Why should I not wrap every block in "try"-"catch"?
Exception
Language Agnostic
Try Catch
The parameterized query ..... expects the parameter '@units', which was not supplied
C#
Sql Server
Exception
Who is calling the Java Thread interrupt() method if I'm not?
Java
Multithreading
Exception
Exception Handling
Are "EXC_BREAKPOINT (SIGTRAP)" exceptions caused by debugging breakpoints?
Cocoa
Macos
Exception
Gdb
Breakpoints
Is there a way to throw an exception without adding the throws declaration?
Java
Exception
How is the C++ exception handling runtime implemented?
C++
Exception
Error Handling
Language Implementation
Exception in thread "main" java.lang.UnsupportedClassVersionError: a (Unsupported major.minor version 51.0)
Java
Exception
Java 7
Unsupported Class-Version
How do exceptions in Haskell work?
Exception
Haskell
A safe max() function for empty lists
Python
List
Exception
Error Handling
Max
Do you end your exception messages with a period?
C#
Exception
Coding Style
Message
How to safely call an async method in C# without await
C#
Exception
Async Await
Task
Task Parallel-Library
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
In Java when does a URL connection close?
Java
Exception
Url
Connection
Why are Python exceptions named "Error"?
Java
Python
Exception
java.lang.IllegalAccessError: tried to access method
Java
Exception
Catching FULL exception message
Powershell
Exception
Exception Handling
Oracle PL/SQL - Raise User-Defined Exception With Custom SQLERRM
Oracle
Exception
Plsql
Custom Exceptions
True-way solution in Java: parse 2 numbers from 2 strings and then return their sum
Java
Parsing
Exception
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'?
Java
Exception
Environment
Runtimeexception
.NET exceptions I can throw for Not Authorized or Not Authenticated
C#
Exception
Authentication
Authorization
Catching NSException in Swift
Swift
Cocoa Touch
Exception
Foundation
Nsexception
How expensive are exceptions in C#?
C#
Exception
PHPUnit assert that an exception was thrown?
Php
Exception
Phpunit
Assert
When I `throw` something, where is it stored in memory?
C++
Exception
Exception Handling
How can I loop through Exception getCause() to find root cause with detail message
Java
Exception
Plsql
In Javascript, is it expensive to use try-catch blocks even if an exception is never thrown?
Javascript
Performance
Exception
Try Catch
c++ exception : throwing std::string
C++
Exception
Stl
JavaScript Exception Handling
Javascript
Exception
How do I stop stacktraces truncating in logs
Java
Exception
Stack Trace
Why do Java people frequently consume exceptions silently?
Java
Exception
Exception Handling
Deciphering the .NET clr20r3 exception parameters P1..P10
.Net
Exception
Clr
What are some good patterns for VBA error handling?
Vba
Exception
"NoClassDefFoundError: Could not initialize class" error
Java
Spring
Exception
Throws or try-catch
Java
Exception
Exception Handling
Try Catch
Throws
Exception thrown in multiprocessing Pool not detected
Python
Exception
Multiprocessing
Catching DoesNotExist exception in a custom manager in Django
Python
Django
Exception
Django Custom-Manager
What is an AssertionError? In which case should I throw it from my own code?
Java
Exception
Effective Java
Why should exceptions be used conservatively?
C++
Exception
Collection was modified; enumeration operation may not execute in ArrayList
C#
Exception
Collections
Enumeration
Java equivalent to .NET System.InvalidOperationException
Java
Exception
How to catch uncaught exception in Promise
Javascript
Exception
Promise
How to handle Task.Run Exception
C#
Multithreading
Exception
Concurrency
Task
Cannot delete directory with Directory.Delete(path, true)
C#
.Net
Exception
Io
Correct way to inherit from std::exception
C++
Exception
Can you catch a native exception in C# code?
C#
.Net
Exception
In C# how do I define my own Exceptions?
C#
Exception
Using Joda Date & Time API to parse multiple formats
Java
Parsing
Exception
Jodatime
The variable 'MyException' is declared but never used
C#
.Net
Exception
Frameworks
Ambiguity
How to create a custom exception and handle it in dart
Flutter
Dart
Exception
Try Catch
Avoiding first chance exception messages when the exception is safely handled
C#
.Net
Exception
How to serialize an Exception object in C#?
C#
.Net
Exception
Serialization
Is it a good or bad idea throwing Exceptions when validating data?
Validation
Exception
Difference between using Throwable and Exception in a try catch
Java
Exception
Throwable
Throwing exceptions in switch statements when no specified case can be handled
C#
Exception
Switch Statement
Catching multiple exceptions at once in Scala
Exception
Scala
Exception Handling
Pattern Matching
Try Catch
Object destruction in C++
C++
Exception
Destructor
C++ Faq
Object Lifetime
Exception from HRESULT: 0x800A03EC Error
C#
Excel
Exception
Interop
Add In
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
What's the intended use of IllegalStateException?
Java
Exception
Illegalstateexception
Python: Catching specific exception
Python
Exception
Should my method throw its own exception, or let .NET throw if a file doesn't exist?
C#
Exception
Python type hinting with exceptions
Python
Python 3.x
Exception
Type Hinting
Python Typing
Is "Out Of Memory" A Recoverable Error?
Language Agnostic
Exception
Memory
Memory Management
Error Recovery
Why is the Catch(Exception) almost always a bad Idea?
Java
Exception
Exception Handling
How to log as much information as possible for an exception in Java?
Java
Exception
Logging
Methods
Stack Trace
Should I derive custom exceptions from Exception or ApplicationException in .NET?
.Net
Exception
How to raise an error within a MySQL function
Mysql
Function
Exception
Stored Procedures
Custom Exception Messages: Best practices
Php
Exception
"Exception has been thrown by the target of an invocation" error (mscorlib)
asp.net
Exception
Mscorlib
Why am I getting "Thread was being aborted" in ASP.NET?
asp.net
Exception
Why is "except: pass" a bad programming practice?
Python
Exception
Error Handling
Try Catch
Best way to handle a KeyNotFoundException
C#
Exception
Keynotfoundexception
Unhandled exceptions in BackgroundWorker
C#
Exception
Backgroundworker
Unhandled Exception
Side effects of throwing an exception inside a synchronized clause?
Java
Exception
Synchronized
'+entityForName: nil is not a legal NSManagedObjectContext parameter - Core Data
Objective C
Ios
Xcode
Exception
Core Data
How to read and understand the java stack trace?
Java
Debugging
Exception
Stack Trace
How can I rethrow an exception from catch block in PowerShell?
Powershell
Exception
Destructor called after throwing from a constructor
C++
Exception
C++11
Setting the message of a custom Exception without passing it to the base constructor
C#
Visual Studio
Exception
Visual Studio-2012
How to catch all exceptions except a specific one?
Java
Exception
How to prevent "too broad exception" in this case?
Python
Exception
Pep8
How can I add a message to an exception without losing any information in C#?
C#
Exception
Exception Handling
php: try-catch not catching all exceptions
Php
Exception
Try Catch
OWIN HttpListener not located
C#
Exception
.Net 4.5
Owin
asp.net Web-Api2
How to catch net::ERR_CONNECTION_REFUSED
Javascript
Jquery
Ajax
Exception
Importing installed package from script raises "AttributeError: module has no attribute" or "ImportError: cannot import name"
Python
Exception
Python Module
Shadowing
Kotlin - Throw Custom Exception
Exception
Kotlin
Is there a way to prevent a SystemExit exception raised from sys.exit() from being caught?
Python
Exception
Exit
Systemexit
Which built-in .NET exceptions can I throw from my application?
C#
.Net
Exception
Throwing ArgumentNullException
C#
.Net
Exception
Exception Handling
Best Practices for Python Exceptions?
Python
Exception
How are exceptions implemented under the hood?
C++
Python
C
Exception
Google C++ style guide's No-exceptions rule; STL?
C++
Exception
Stl
ASP.NET Core Web API exception handling
C#
Exception
asp.net Core
When to catch the Exception vs When to throw the Exceptions?
Java
Exception
Throw
Getting Exception java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions after updating to the new firebase
Android
Exception
Firebase
Firebase Realtime-Database
Single-threaded apartment - cannot instantiate ActiveX control
.Net
Exception
Sta
Single Threaded
What exception to throw when an important parameter/dependency is missing?
Java
Oop
Exception
Is it possible to catch exceptions thrown in a JavaScript async callback?
Javascript
Google Maps
Exception
Callback
How to change the message in a Python AssertionError?
Python
Exception
Assertions
Nose
android.content.res.Resources$NotFoundException: String resource ID Fatal Exception in Main
Android
Exception
Random
Textview
Catching multiple exceptions in Java-8
Java
Exception
Java 8
Try Catch
Proper way to declare custom exceptions in modern Python?
Python
Exception
Why return NotImplemented instead of raising NotImplementedError
Python
Exception
I've caught an exception!! Now what?
Sql
vb.net
Exception
how to catch unknown exception and print it
C++
Exception
Difference between try-catch and throw in java
Java
Exception
Android: Unable to instantiate activity / ClassNotFoundException
Android
Exception
With "-fno-exceptions", what happens with "new T"?
C++
Exception
How to catch a specific SqlException error?
C#
Exception
Sqlexception
How can I get a Python generator to return None rather than StopIteration?
Python
Exception
Generator
Stopiteration
Throw a NotImplementedError in PHP?
Php
Exception
WPF global exception handler
C#
.Net
Wpf
Exception
Exception Handling
How do I declare that a computed property 'throws' in Swift?
Swift
Exception
Swift2
Is it really that bad to catch a general exception?
Exception
Java equivalent to .Net's NotSupportedException
Java
.Net
Exception
Best way to check for inner exception?
C#
.Net
Exception
Exception Handling
What does "throw;" by itself do?
C#
.Net
Exception
Exception traceback is hidden if not re-raised immediately
Python
Exception
Exception Handling
Try Catch
Traceback
How can I throw a general exception in Java?
Java
Exception
Exception.getMessage() is null
Java
Exception
Is there "Break on Exception" in IntelliJ?
Debugging
Exception
Intellij Idea
Python exception handling - line number
Python
Exception
Indexing
Could not load file or assembly System.Net.Http.Primitives. Located assembly's manifest definition does not match the assembly reference
Exception
Google Api-Dotnet-Client
Get HTTP Error code from requests.exceptions.HTTPError
Python
Http
Exception
Python Requests
Extending Exception/RunTimeException in java?
Java
Exception
what does Error "Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)" mean?
Ios
Swift
Exception
Runtime Error
Is there an analogue to Java IllegalStateException in Python?
Java
Python
Exception
Handle an exception thrown in a generator
Python
Exception
Generator
Spock - Testing Exceptions with Data Tables
Exception
Testing
Groovy
Spock
python selenium webscraping "NoSuchElementException" not recognized
Python
Exception
Selenium
Selenium Webdriver
How to test that no exception is thrown?
Java
Unit Testing
Exception
Junit
Junit4
Exception for missing data
C#
Exception
Python global exception handling
Python
Exception
How to retry after exception?
Python
Loops
Exception
Try Except
Add custom message to thrown exception while maintaining stack trace in Java
Java
Exception
Exception Handling
Why does division by zero with floating point (or double precision) numbers not throw java.lang.ArithmeticException: / by zero in Java
Java
Exception
Arithmeticexception
Dividebyzeroexception
Debugger not breaking/stopping for exceptions in async method
C#
Debugging
Exception
Async Await
Visual Studio-Debugging
Why does NotImplementedException exist?
.Net
Exception
Exception Handling
Notimplementedexception
Notsupportedexception
What could cause java.lang.reflect.InvocationTargetException?
Java
Exception
Reflection
Invoke
In what ways do C++ exceptions slow down code when there are no exceptions thown?
C++
Exception
Overhead
check what files are open in Python
Python
Debugging
Exception
File
catching SQLAlchemy exceptions
Python
Sqlalchemy
Exception
What happens when an exception goes unhandled in a multithreaded C++11 program?
C++
Multithreading
Exception
C++11
C++ Faq
How to explain whether Exception will catch RuntimeException?
Java
Exception
Runtimeexception
How can I handle the warning of file_get_contents() function in PHP?
Php
Function
Exception
Warnings
File Get-Contents
How to rethrow InnerException without losing stack trace in C#?
C#
.Net
Exception
How do I log an exception at warning- or info-level with traceback using the python logging framework?
Python
Exception
Logging
Error Handling in ASP.NET MVC
asp.net Mvc
Exception
How do I add information to an exception message in Ruby?
Ruby
Exception
Exception Handling
Recurring Exception without a stack trace - how to reset?
Java
Exception
Why doesn't list have safe "get" method like dictionary?
Python
List
Exception
Indexoutofboundsexception
How to get the Stack trace when logging exceptions with NLog?
.Net
Exception
Stack Trace
Nlog
hardcoded string "row three", should use @string resource
Android
Exception
Internationalization
Is catching an exception by reference dangerous?
C++
Exception
When I catch an exception, how do I get the type, file, and line number?
Python
Exception
Stack Trace
Traceback
What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it?
Java
Arrays
Exception
Arrayindexoutofboundsexception
How to print an exception in Python 3?
Python
Python 3.x
Exception
Web Scraping
How to convert errno to exception using <system_error>
C++
Exception
C++11
Catching exceptions from a constructor's initializer list
C++
Exception
Is there a built in .NET exception that indicates an illegal object state?
C#
.Net
Exception
Exception Logging for WCF Services using ELMAH
asp.net
Wcf
Exception
Logging
Elmah
Catch two exceptions in the same catch block?
C#
.Net
Exception
Exception Handling
What can you throw in Java?
Java
Exception
Throw
Converting Exception to a string in Python 3
Python
Exception
Unicode
Character Encoding
Java - is it bad practice to do a try/catch inside a try/catch?
Java
Exception
Exception Handling
Try Catch
How to catch all exceptions in c# using try and catch?
C#
Exception
Exception: Serialization of 'Closure' is not allowed
Php
Exception
Serialization
Closures
Log caught exception with stack trace
Php
Exception
Logging
Java interface throws an exception but interface implementation does not throw an exception?
Java
Exception
Interface
IllegalArgumentException: Parameter specified as non-null is null
Android
Exception
Null
Kotlin
threading ignores KeyboardInterrupt exception
Python
Multithreading
Events
Exception
Keyboardinterrupt
How to get the last exception object after an error is raised at a Python prompt?
Python
Exception
Try Catch
Read Eval-Print-Loop
Test a specific exception type is thrown AND the exception has the right properties
C++
Unit Testing
Exception
Googletest
Exception messages in English?
C#
.Net
Exception
Localization
Is it a bad idea to use printStackTrace() for caugt Exceptions?
Java
Exception
Printstacktrace
Concurrent Modification Exception : adding to an ArrayList
Java
Android
Exception
Arraylist
Iteration
java.lang.UnsupportedOperationException at java.util.AbstractList.remove(Unknown Source)
Java
Arrays
Exception
Collections
method called after release() exception unable to resume with android camera
Java
Android
Exception
Callback
Camera
Python requests exception handling
Python
Exception
Http Request
Python Requests
Exception without stack trace in Java
Java
Exception
Stack Trace
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
Java
Mysql
Exception
Jdbc
Connection
Catch statement does not catch thrown error
Javascript
Jquery
Exception
Exception Handling
Try Catch
Is it a known good practice to use a big try-catch per method in java?
Java
Exception
Try Catch
Android XML: RuntimeException: Failed to resolve attribute at index 6
Android
Xml
Exception
Android Studio
Gradle
Can I get detailed exception stacktrace in PowerShell?
Exception
Powershell
Stack Trace
Throwing exceptions from constructors
C++
Exception
Constructor
Throw
Stack smashing detected
C
Exception
Stack
Why destructor is not called on exception?
C++
Exception
Visual C++
Destructor
Stack Unwinding
Printing out actual error message for ValueError
Python
Python 3.x
Exception
Outputting errors in a rescue (Ruby/Rails)
Ruby on-Rails
Ruby
Exception
EOFException when reading QueueFile tape
Java
Android
Exception
Square Tape
sql try/catch rollback/commit - preventing erroneous commit after rollback
Sql
Sql Server
Exception
Transactions
Try Catch