new method error() for Task