Skip to content

Tag: Apex

Propagating server side exceptions to Lightning Components.

An exception is a error condition or unexpected behavior that is encountered by an executing block of code. Exceptions can be thrown because of a error in executing code or in code that is being called by your code. Exception handling strategy is to gracefully handle error condition. Apex provides try, catch, and finally statements to gracefully recover from exceptions and throw statements to generate exception. If an end user runs into an exception that occurred in apex code, an error message appears on user interface with description of error.… Read more Propagating server side exceptions to Lightning Components.

Enforcing CRUD and FLS in Apex

Salesforce apps runs under two contexts one is user context and other is system context. User context is the default context that we see when you’re interacting with the UI in Salesforce, In user context, the current user’s permissions, field-level security, and sharing rules are taken into account as we browse the UI or execute code. Application executes in user context when: A user browses the application via the standard Salesforce-provided UI. A user views a Visual force page that uses a standard controller. A user views a Visual force… Read more Enforcing CRUD and FLS in Apex