This is a migrated thread and some comments may be shown as answers.

Catching custom errors in HTML5 viewer.

1 Answer 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 23 Oct 2014, 08:20 PM
I'm working on a proof of concept project where I have implemented a IReportResolver that returns a reportResolver. What I'm curious about, is how I would go about returning custom error messages to display in the HTML5 report viewer. I have logic to catch when I want to display the error, and I'm throwing a new Exception. However it appears that regardless of what I set the exception message to the displayed error in the viewer is always 

{"message":"","exceptionMessage":"Report '0e12f0b0-5adf-11e4-894e-d4ae52a43518' cannot be resolved.","exceptionType":"Telerik.Reporting.Services.Engine.InvalidReportException" ...}.

I would like to be able to return a different exception message such as Telerik.Reporting.Services.Engine.Unauthorized or something to that effect with the message being something that I can change. Are there any ways to do this?

-Randy

1 Answer, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 28 Oct 2014, 04:23 PM
Hi Randy,

You can change the report viewer messages like it is described in this help article.

I hope my suggestion helps you.
Tags
General Discussions
Asked by
Randy
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Share this question
or