2 个回答
HI Rasmita,The question is quite broad. You might want to add what you have tried so far and where exactly you are stuck. If you are trying to Create Custom Exceptions, see the example code on https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_exception_custom.htm to get started.AboutReturning Errors from an Apex Server-Side Controller: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_apex_custom_errors.htmRelated: https://salesforce.stackexchange.com/questions/179127/try-catch-blocks-within-a-custom-controllerIf this information helps, please mark the answer as best. Thank you