0
votes
1answer
25 views

Inflate Exception Binary Xml File at line #2

i am using the ADT Bundle provided by android, previously i was using the normal eclipse with ADT plugin my apps were working fine, but now after using the new ADT Bundle my apps crashes after ...
0
votes
1answer
14 views

Application dropping connection to Salesforce, any way to retry on Exception?

I wrote an application that connects to Salesforce.com via the API and queries and updates the data. Sometimes, a method, like the one below, will fail to connect and cause the whole application to ...
0
votes
2answers
7 views

Google Analytics Android SDK / Exceptions report : “myParser represents your implementation of ExceptionParser”

I have implemented in my project the exception reporting feature of Google Analytics (Android SDK) described here : ...
1
vote
2answers
46 views

Try/Except in a loop

I am having difficulties with raising exceptions, for example: import csv o = open('/home/foo/dummy.csv', 'r') # Empty file! reader = csv.reader(o, delimiter=';') reader = list(reader) try: for ...
3
votes
2answers
71 views

PHP 5.5 and try … finally

PHP 5.5 is adding support for finally in try/catch blocks. Java allows you to create a try/catch/finally block with no catch block, so you can cleanup locally when an exception happens, but let the ...
0
votes
2answers
22 views

Struts2 customExceptionMappingInterceptor

I already searched here and on internet but I couldn't find a solution for my problem. I would like to use my custom exceptionHandler to intercept all the java exceptions and to treat them in a ...
-1
votes
1answer
52 views

Exception handling in Grails controllers

I know how to do generic exception handling in Grails using UrlMappings and an ErrorController for generic exception handling, so that if an exception escapes a controller the user will be sent to a ...
-5
votes
4answers
79 views

How to add try/catch in Objective-C? [closed]

I'm new in iOS. I worked on c#. How can I handle exceptions in iOS? Is it possible to use construct try { //Code } catch { //Exception } finally { //You shall pass! } Please help
0
votes
0answers
91 views

Why am I still getting an exception even it should be handled? [duplicate]

Coding: try StrToInt(inputNumVariables.Text); except ShowMessage('Sólo números, por favor'); end; Being inputNumVariables a TEdit why would it raise and exception if I type in anything different ...
8
votes
1answer
85 views

Pass error reason in thrown object / How to handle errors in modern JavaScript [closed]

I am developing a small Node.js package which contains a parser. It throws as soon as it detects a non-recoverable problem. I have used Java for quite some years and I am used to a mass of ...
0
votes
2answers
29 views

Load-time exception handling in AngularJS

I need to execute a function which is defined in controller in load-time, in order to gain json data from another place right after page is loaded. I've tried to call the func immediately within ...
5
votes
1answer
50 views

Cleanest way to execute code outside of try block only if no exception is thrown

This question is about the best way to execute code outside of try block only if no exception is thrown. try { //experiment //can't put code after experiment because I don't want a possible ...
-1
votes
2answers
69 views

Why return null after catching an Exception? [closed]

I've encountered some code which is catching RestClientException and then returning null. I think this is bad practice ? Why would a developer (who has since moved on) do this ? The method in which ...
0
votes
2answers
34 views

PHP - sensible/elegant/graceful error handling for a production environment

I'm writing a PHP web application which will be running under a production environment in the not too distant future, and rather than use the non-user-friendly die(), I thought I'd come up with a ...
1
vote
1answer
41 views

Find Exception type

If I have the following code: try { //some offensive code } catch (Exception e) { String type = //get type of e Assert.fail(type + " thrown."); } Is there a way I can get the type ...

1 2 3 4 5 90
15 30 50 per page