docs: def from_dict(d: Dict[str, Any]) -> 'BugZooException':
          """
          Reconstructs a BugZoo exception from a dictionary-based description.
          """
          assert 'error' in d
          d = d['error']
  
          cls = getattr(sys.modules[__name__], d['kind'])
          assert issubclass(cls, BugZooException)
          return cls.from_message_and_data(d['message'],
                                           d.get('data', {}))