Instead of displaying errors, throw exceptions.