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
{"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