A class shouldn't write to stderr on error, it should throw an exception