Activity Forums Salesforce® Discussions How can we add custom exception in apex class ?

  • Aditya

    Member
    July 22, 2020 at 2:31 pm

    To create your custom exception class, extend the built-in Exception class and make sure your class name ends with the word Exception , such as “MyException” or “PurchaseException”. All exception classes extend the system-defined base class Exception , and therefore, inherits all common Exception methods.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos