def to_dict(self):
out = {}<EOL>out['<STR_LIT>'] = self.msg<EOL>out['<STR_LIT:type>'] = self.__class__.__name__<EOL>out['<STR_LIT>'] = self.params<EOL>return out<EOL>
Convert this exception to a dictionary.

        Returns:
            dist: A dictionary of information about this exception,
                Has a 'reason' key, a 'type' key  and a dictionary of params