//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void suspendUser(String username) throws java.io.IOException, org.neo4j.kernel.api.exceptions.InvalidArgumentsException, org.neo4j.graphdb.security.AuthorizationViolationException public override void SuspendUser(string username) { try { AssertUserManager(); if (_subject.hasUsername(username)) { throw new InvalidArgumentsException("Suspending yourself (user '" + username + "') is not allowed."); } _userManager.suspendUser(username); _securityLog.info(_subject, "suspended user `%s`", username); } catch (Exception e) when(e is AuthorizationViolationException || e is IOException || e is InvalidArgumentsException) { _securityLog.error(_subject, "tried to suspend user `%s`: %s", username, e.Message); throw e; } }