ClassReportsExceptionFilter
Class
Provides global exception handling for Telerik Reporting Web API controllers with configurable error verbosity.
Definition
Namespace:Telerik.Reporting.Services.WebApi
Assembly:Telerik.Reporting.Services.WebApi.dll
Syntax:
cs-api-definition
public class ReportsExceptionFilter : ExceptionFilterAttribute
Inheritance: objectReportsExceptionFilter
Constructors
ReportsExceptionFilter()
Declaration
cs-api-definition
public ReportsExceptionFilter()
Methods
OnException(HttpActionExecutedContext)
Handles exceptions thrown during Web API action execution and converts them to structured HTTP error responses.
Declaration
cs-api-definition
public override void OnException(HttpActionExecutedContext context)
Parameters
context
HttpActionExecutedContext
The execution context containing information about the action and the exception that occurred.
Remarks
This method processes exceptions according to the configured exception verbosity level:
- Normal: Returns basic error information suitable for production environments
- Detailed: Includes full exception details and stack traces for debugging purposes
The response format is standardized to ensure consistent error handling across all reporting service endpoints.