Question d’entretien chez Freshworks

How do you implement a user defined error class.