error() raises an exception