def get_exception_data(e):
 err_data = {'type': e.__class__.__name__, 'message': e, 'detail': ''}
 return err_data

def get_exception_data ( e ) : err_data = { 'type' : e . __class__ . __name__ , 'message' : e , 'detail' : '' } return err_data
extract the information about an exception .