Throw exceptions instead of setting error string.