Category "exception"

Detecting out of memory errors

I would like to provide my system with a way of detecting whether out of memory exception has occurred or not. The aim for this exercise is to expose this flag

no mssql-jdbc_auth-8.2.1.x64 in java.library.path

I'm trying to connect to SQL DB in my Maven project, but keep getting following exception: "com.microsoft.sqlserver.jdbc.SQLServerException: This driver is no

Python detect string and int using exception handling

I am trying to work on detecting strings and int using exception handling and cannot figure it out. Please help! Using the inputs Lee 18 Lua 21 Mary Beth 19 Stu

On Error Resume Next in Python

Snippet 1 do_magic() # Throws exception, doesn't execute do_foo and do_bar do_foo() do_bar() Snippet 2 try: do_magic() # Doesn't throw exception, doesn'

True-way solution in Java: parse 2 numbers from 2 strings and then return their sum

Given the code: public static int sum(String a, String b) /* throws? WHAT? */ { int x = Integer.parseInt(a); // throws NumberFormatException int y = Integer

Tracking "hidden" exceptions

I am inspecting the output of a program of mine where from time to time I see a message like "java.lang.NullPointerException" and nothing else. Because this doe

Adding information to an exception?

I want to achieve something like this: def foo(): try: raise IOError('Stuff ') except: raise def bar(arg1): try: foo() exce

How do I solve SecurityNegotiationException and InvalidCredentialException in WCF

So I've written a small game and wish for the game to be playable over the internet. I've been testing the game just through localhost using these configs: Cl

org.hibernate.QueryParameterException: could not locate named parameter [userId]

I need help, I am getting the aforementioned exception. Where am I going wrong? In the mapping from class to table, I have used the following: private String u

Verifying ArgumentException and its message in Nunit , C#

In my test program in Nunit, I want to verify that it's getting the write Argument Exception by verifying the message. [Test] public void ArgumentsWork

Difference between Unchecked exception or runtime exception

This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.

Difference between Unchecked exception or runtime exception

This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.

Difference between Unchecked exception or runtime exception

This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.