Top "Exception" questions

An exception is an unusual condition that requires deviation from the program's normal flow.

How do I log a Python error with debug information?

I am printing Python exception messages to a log file with logging.error: import logging try: 1/0 except ZeroDivisionError as e: …

python exception logging exception-handling
How to create a custom exception type in Java?

I would like to create a custom exception in Java, how do I do it? ... try{ ... String word=reader.readLine(); …

java exception
How using try catch for exception handling is best practice

while maintaining my colleague's code from even someone who claims to be a senior developer, I often see the following …

c# .net exception exception-handling try-catch
How can I read a text file in Android?

I want to read the text from a text file. In the code below, an exception occurs (that means it …

java android exception inputstream
Official reasons for "Software caused connection abort: socket write error"

Given this stack trace snippet Caused by: java.net.SocketException: Software caused connection abort: socket write error  at java.net.…

java exception sockets tomcat stack-trace
Eclipse - java.lang.ClassNotFoundException

When trying to start my JUnit-Test out of Eclipse, I get a "ClassNotFoundException". When running "mvn test" from console - …

java eclipse exception maven-2
Understanding checked vs unchecked exceptions in Java

Joshua Bloch in "Effective Java" said that Use checked exceptions for recoverable conditions and runtime exceptions for programming errors (Item 58 …

java exception runtimeexception checked-exceptions unchecked-exception
Oracle PL/SQL - Raise User-Defined Exception With Custom SQLERRM

Is it possible to create user-defined exceptions and be able to change the SQLERRM? For example: DECLARE ex_custom EXCEPTION; …

oracle exception plsql custom-exceptions
Causes of getting a java.lang.VerifyError

I'm investigating the following java.lang.VerifyError java.lang.VerifyError: (class: be/post/ehr/wfm/application/serviceorganization/report/DisplayReportServlet, method: …

java exception deployment verifyerror