Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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