Removed duplicate methods seterror() and geterror()