Add class for handling trigger error and complete events