Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Reports Exceptions

The Reports namespace contains exception classes.

All exception classes support built-in methods for returning the error message and exception type. See Exception Class and Built-In Exceptions.

The Reports namespace contains these exceptions:

Exception Description Methods
Reports.FeatureNotSupportedException Invalid report format
Reports.InstanceAccessException Unable to access report instance
Reports.InvalidFilterException Filter validation error List<String> getFilterErrors() returns a list of filter errors
Reports.InvalidReportMetadataException Missing metadata for filters List<String> getReportMetadataErrors() returns a list of metadata errors
Reports.InvalidSnapshotDateException Invalid historical report format List<String> getSnapshotDateErrors() returns a list of snapshot date errors
Reports.MetadataException No selected report columns
Reports.ReportRunException Error running report
Reports.UnsupportedOperationException Missing permissions for running reports