private void DoRedirectUriError(string error, string error_description, string error_uri, string state) { OAuth2Exception er = new OAuth2Exception(); er.Error = error; er.ErrorDescription = error_description; er.ErrorUri = error_uri; er.State = state; throw er; }