Catching custom errors in HTML5 viewer.

2 posts, 0 answers
  1. Randy
    Randy avatar
    12 posts
    Member since:
    Apr 2014

    Posted 23 Oct 2014 Link to this post

    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?

  2. Hinata
    Hinata avatar
    146 posts
    Member since:
    Dec 2013

    Posted 28 Oct 2014 in reply to Randy Link to this post

    Hi Randy,

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

    I hope my suggestion helps you.
Back to Top