Error in Salesforce : Exception class must extend another Exception class at
Issue:
While importing a WSDL to Salesforce for an integartion, I am getting error :
(Note: This same error will come if you are directly creating a class as well)
Exception class must extend another Exception class at
Root Cause:
Salesforce does not allow you to create a Class with name ending “Exception”. Check if your class generated has a method with name ending Exception .
Resolution:
Rename the class name to not have a name ending with Exception. Example: if your class is generated/created as MyException , it will throw error. Use MyExcecptionClass instead.
Leave a Reply