def _chemfp_error(err, lineno, filename): if -40 <= err <= -30: return FPSFormatError(err, filename, lineno) elif err == -2: raise MemoryError(_chemfp.strerror(err)) else: # This shouldn't happen return RuntimeError(_chemfp.strerror(err))
def __str__(self): return "%s at line %s of %r" % (_chemfp.strerror( self.code), self.lineno, self.filename)
def __str__(self): msg = _chemfp.strerror(self.errcode) msg += " at line %d" % (self.lineno, ) if self.filename is not None: msg += " of file %r" % (self.filename, ) return msg
def __str__(self): return "%s at line %s of %r" % (_chemfp.strerror(self.code), self.lineno, self.filename)
def __str__(self): msg = _chemfp.strerror(self.errcode) msg += " at line %d" % (self.lineno,) if self.filename is not None: msg += " of %r" % (self.filename,) return msg