def __init__(self, error_message, error_code, command):
        """
            This exception is mainly use to correctly generate the error message is the stack trace
            :param error_message: error message from the bulb
            :param error_code: error code generate by the bulb
            :param command: command that generate this response
            :type error_message: str
            :type error_code: int
            :type command: YeelightCommand
        """
        message = "Sent to the Yeelight Bulb :\n{}\n".format(command.__str__())
        message += "The Yeelight bulb returns the following error : {} (Code {})\n".format(error_message, error_code)
        Exception.__init__(self, message)
def __init__ ( self , error_message , error_code , command ) : message = "Sent to the Yeelight Bulb :\n{}\n" . format ( command . __str__ ( ) ) message += "The Yeelight bulb returns the following error : {} (Code {})\n" . format ( error_message , error_code ) Exception . __init__ ( self , message )
This exception is mainly use to correctly generate the error message is the stack trace
            :param error_message: error message from the bulb
            :param error_code: error code generate by the bulb
            :param command: command that generate this response
            :type error_message: str
            :type error_code: int
            :type command: YeelightCommand