def as_string(self): result = f'{self.error_name}: {self.details}\n' result += f'फाईल {self.pos_start.fn}, ओळ {e2md.eng_to_mar(self.pos_start.ln + 1)}' result += '\n\n' + string_with_arrows(self.pos_start.ftxt, self.pos_start, self.pos_end) return result
def as_string(self): result = self.generate_traceback() result += f'{self.error_name}: {self.details}' result += '\n\n' + string_with_arrows(self.pos_start.ftxt, self.pos_start, self.pos_end) return result
def as_string(self): result = f'{self.error_name}:{self.details}' result += f' {self.pos_start.fname}, line {self.pos_start.ln+1}' result += '\n\n' + string_with_arrows(self.pos_start.ftext, self.pos_start, self.pos_end) return result