Questions tagged [onexception]
27 questions
1
vote
1 answer
How do I get the source of an exception in my Application.OnException event handler?
In Delphi 7, if I catch an exception in my Application.OnException event handler, then how can we find out which function or procedure of the application threw this unhandled exception?
I have created an application and am getting the exception…

Victory
- 11
- 1
1
vote
0 answers
Web Api REST service exception handling issue
I've built a simple REST service using ASP.NET web api.
I've associated one of my controller's method with a custom ActionFilterAttribute, overriding it's OnActionExecuted. On the action filter I use the response about to be sent…

DotnetProg
- 790
- 9
- 24
1
vote
1 answer
Error While adding Exception Filter in MVC 3
I am trying to create custom exceptions for my mvc 3(razor) application.
But its not working properly.
Following is the code I've written for custom exception class.
using System;
using System.Web.Mvc;
namespace TestApp.Helpers
{
public class…

Vivek Sharma
- 59
- 2
- 6
0
votes
2 answers
Camel: How to retain aggregation result when exception occurs?
I have a route which multicast to 2 places. If a exception occurs when calling 1 of the place, I'm not able to retain the aggregation result. Inside the processor of the onException, the Map which I created during aggregating is not there. Im using…

Esca Tran
- 129
- 1
- 3
- 14
0
votes
2 answers
Capture exception in Delphi Application.OnException before try except block
I want to log every exception raised in the delphi application.
For that, I overrided the Application.OnException event with one of my own in the project source code.
program Project;
uses
Vcl.Forms,
Unit1 in 'Unit1.pas' {Form1},
Logger in…

Andres
- 2,729
- 5
- 29
- 60
0
votes
1 answer
PostSharp OnException on mscorlib(ignore exception) - What are the dangers?
I was thinking if one could make an exception free app(not really, but one with minimal exception throwing)
Lets say i apply my aspect with the OnException method to everything inside mscorlib(sounds like a bad idea).
This can lead to stackoverflow…

Joao Vitor
- 169
- 1
- 9
0
votes
0 answers
Using OnException within a route containing aggregator
I am trying to use an onException clause within my route that also has an aggregator in it.
I was expecting that whenever an exception is thrown within the aggregate() method of my aggregator, the OnException clause should catch it, handle it and…

LearnToLive
- 462
- 9
- 25
0
votes
1 answer
Injecting or Inheriting Router Builder for global onException in apache camel
I have onException configured in one DefaultRouteBuilder class. I want this onException in all other routes in my context. My doubt is whether I should inherit DefaultRouteBuilder in all other routes and calling super.configure() in configure()…

Ayan
- 515
- 4
- 9
- 20
0
votes
0 answers
onCompletion being triggred, not onException
This is a varition of the question, I asked in Camel's CXF component not catching onException(Exception.class)
I have implemented the solution which Claus suggested in the above but its not working. I don't understand why onCompletion is being…

Anoop Hallimala
- 625
- 1
- 11
- 25
0
votes
1 answer
Does javax.jms.ExceptionListener delay the onException callback when network connection goes down?
I'm using Websphere Application Server (WAS) 6.1's default messaging provider for JMS. My remote client application creates a connection, then does a setExceptionListener to register the callback.
When I simply stop the messaging engine using the…
Kris
0
votes
1 answer
Selenium 2 OnException method in c#
Am porting by Java codes to c#. I wanted to re-write the following Java code in c#. Thanks in advance :)
// Called whenever an exception would be thrown.
public void onException(java.lang.Throwable throwable, WebDriver driver){
…

Ibexy I
- 1,123
- 6
- 16
- 29
0
votes
3 answers
Two step MVC 3 Error Handling using Custom Error Controller and HandleErrorAttribute
I am using a combination of HandleErrorAttribute and a Custom Error Controller in the Custom Errors section for error handling in a MVC3 application. The logic is to handle any Ajax request errors via the OnException handler in the…

devanalyst
- 1,348
- 4
- 28
- 55