Skip to content

Improve error handling #255

@pgajek2

Description

@pgajek2

Is your feature request related to a problem? Please describe.
When a query is executed and the user doesn't have an access to a field, the following error is thrown: No such column 'FieldName__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name.. Catch it, and improve the error message to be clearer.

System.QueryException: No such column 'FieldName__c' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

Stack trace:	
Class.SOQL.InheritedSharing.toSObjects: line 2790, column 1
Class.SOQL.Executor.toList: line 2680, column 1
Class.SOQL.toList: line 1010, column 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsimpleGood for Junior/Mid developers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions