code: def __to_dev_failed(exc_type=None, exc_value=None, traceback=None):
      
      try:
          Except.throw_python_exception(exc_type, exc_value, traceback)
      except Exception as e:
          return e
docs: to_dev_failed(exc_type, exc_value, traceback) -> tango.DevFailed
  
              Generate a TANGO DevFailed exception.
              The exception is created with a single :class:`~tango.DevError`
              object. A default value *tango.ErrSeverity.ERR* is defined for
              the :class:`~tango.DevError` severity field.
  
              The parameters are the same as the ones generates by a call to
              :func:`sys.exc_info`.
  
          Parameters :
              - type : (class)  the exception type of the exception being handled
              - value : (object) exception parameter (its associated value or the
                        second argument to raise, which is always a class instance
                        if the exception type is a class object)
              - traceback : (traceback) traceback object
  
          Return     : (tango.DevFailed) a tango exception object
  
          New in PyTango 7.2.1