• MOHAMMEDISHAQUESHAIKH
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Custom Exception Class
public MyException extends Exception{
}
  • Do we need to Write the test class for deployment ?
  • Code coverage is 0% will it be able to move to prod environment?
I have written the test class but it is not covering the above class.
@isTest
public class MyTest{
    static testmethod void testMethod(){
          try{
                 throw new MyException();
          }catch(Exception ex){}
    }

}