Exception handling is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions, special conditions that change the normal flow of program execution.

learn more…| top users | synonyms

0
votes
0answers
15 views

Laravel/Sentry: how to report only http 500 error but not other http exceptions?

In laravel 5.5, httpExceptions are not reported by default. What do I do if I want to track http 500 internal error exceptions? If I simply remove httpException from dontReport, sentry will soon be ...
0
votes
0answers
6 views

How to kill jboss on bean initialization failure in the java application

I have a java server application running on jboss. I want to kill the jboss process once there is any exception in starting the application (specifically bean initialization). I want to make sure that ...
-2
votes
1answer
26 views

rescue / exeception marked as red in editor? Were Am I going wrong

I have just started test automation project in ruby, however, am only used to java so trying to get the hang of ruby and I cant see where my syntax is going wrong.rescue Watir::Exception::...
0
votes
0answers
9 views

How to check validity of Handle in swig wrapper

I am trying to correctly dispose a scene graph from C# via swig wrapped open scene graph nodes. If I dispose of an osg node, I may get back to it via another pointer later on, so that I would call a ...
-2
votes
1answer
50 views

C# Handling Exception in Task with await

I'm new to the async and await keywords in C# and I am using C# 6.0. What is the problem with my code? The DivideByZeroException does not get caught in the catch block. I read that in C# 5 and newer, ...
7
votes
2answers
151 views

Delphi exception handling, use E: Exception or ExceptObject

We have 2 applications, the first one is VCL project, the other is a windows service.In the VCL project we do:tryexcepton E: Exception do// do something with E.Messageendbut in the ...
1
vote
2answers
26 views

Python Except Specific Key Error

I'm parsing an XML file using Beautiful Soup. Sometimes I have entries that are missing one or more of the keys I'm parsing. I want to setup exceptions to handle this. My code looks something like ...
-7
votes
0answers
32 views

How jvm check for filenotfound exception [on hold]

Want to know about how JVM will check that there is FileNotFound Exception at compile time and how it will throw it.
0
votes
0answers
9 views

How to force Custom ResponseEntityExceptionHandler without getting overridden by CamelExecutionException?

My project is Spring Boot Camel Rest application and has applied Custom Response Entity Handler for handling own exception. Though the custom exception is caught as expected, it eventually gets ...
0
votes
1answer
47 views

IDEA AutoComplete Proper Exception

I have a function(AFunction) which maybe throws XXException.I write BFunction like thistry{AFunction()}catch(e:){// Some Code}When I write e:,how can IDEA complete XXException (the ...
1
vote
0answers
13 views

When send Exception message to developer with SMS, is it OK to use 'e.toString()'

When Exception occured, I want to send Exception message to developer by SMS. Is it OK to send 'e.toString()' >?I have tested few times, the String length was not much long. so I choose 'e....
11
votes
2answers
416 views

Why does a catch exception-declaration allow trailing parentheses?

I have come across some C++ code that looks like the following:class exception {};int main(){try {throw exception();} catch (exception()) {// ...}}Note the ...
-1
votes
0answers
20 views

Unable to start activity ComponentInfo{com.m.ocrapp/com.m.ocrapp.MainActivity}: java.lang.IllegalArgumentException: Data path does not exist [duplicate]

I am trying to take a picture from camera and do OCR on it by tesseract-ocr library. This is my full code:Manifest:<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://...
0
votes
1answer
35 views

How hide database details when sql related exception occurs in Web Applicaition?

There is white hat(hacker) security scan in our Application. They asked us not to show database details in sqlExeption e.g ERRMSG=Error: ORA-00001: unique constraint (PMS.SUBPROJACT_PK) violated, ...
0
votes
2answers
60 views

Swift can throw in `if let` blocks?

Wrote this simple getJson wrapper:func getJson<T>(path: String) -> T? {let url=URL(string: path)let session=URLSession.sharedvar obj: T?if let usableUrl=url {...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,