"""The ``exceptions`` module houses custom exceptions. Currently implemented:- OptimizationError"""classOptimizationError(Exception):""" When an optimization routine fails – usually, this means that cvxpy has not returned the "optimal" flag. """def__init__(self,*args,**kwargs):default_message=("Please check your objectives/constraints or use a different solver.")super().__init__(default_message,*args,**kwargs)