catch an exception, change table format to method/source