error() method added.