def to_dict(self):
        """Create a dict representation of this exception.

        :return: The dictionary representation.
        :rtype: dict

        """
        rv = dict(self.payload or ())
        rv["message"] = self.message
        return rv