diff options
author | crupest <crupest@outlook.com> | 2020-08-21 23:32:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-21 23:32:53 +0800 |
commit | c79352d27df2506d2ab214f61d60e503a1d7675a (patch) | |
tree | a3831200a2fca0b5a4a46287b38a02a468ab371d /Timeline/Services/UserService.cs | |
parent | be532c56158362701a4d5704e995c743ff8b9804 (diff) | |
download | timeline-c79352d27df2506d2ab214f61d60e503a1d7675a.tar.gz timeline-c79352d27df2506d2ab214f61d60e503a1d7675a.tar.bz2 timeline-c79352d27df2506d2ab214f61d60e503a1d7675a.zip |
...
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r-- | Timeline/Services/UserService.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs index d9b3da26..821bc33d 100644 --- a/Timeline/Services/UserService.cs +++ b/Timeline/Services/UserService.cs @@ -65,11 +65,10 @@ namespace Timeline.Services /// Create a user with given info.
/// </summary>
/// <param name="info">The info of new user.</param>
- /// <param name="password">The password, can't be null or empty.</param>
/// <returns>The the new user.</returns>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="info"/>is null.</exception>
/// <exception cref="ArgumentException">Thrown when some fields in <paramref name="info"/> is bad.</exception>
- /// <exception cref="ConflictException">Thrown when a user with given username already exists.</exception>
+ /// <exception cref="EntityAlreadyExistException">Thrown when a user with given username already exists.</exception>
/// <remarks>
/// <see cref="User.Username"/> must not be null and must be a valid username.
/// <see cref="User.Password"/> must not be null or empty.
@@ -110,7 +109,7 @@ namespace Timeline.Services /// <exception cref="ArgumentNullException">Thrown when <paramref name="username"/> is null.</exception>
/// <exception cref="ArgumentException">Thrown when <paramref name="username"/> is of bad format or some fields in <paramref name="info"/> is bad.</exception>
/// <exception cref="UserNotExistException">Thrown when user with given id does not exist.</exception>
- /// <exception cref="ConflictException">Thrown when user with the newusername already exist.</exception>
+ /// <exception cref="EntityAlreadyExistException">Thrown when user with the newusername already exist.</exception>
/// <remarks>
/// Only <see cref="User.Administrator"/>, <see cref="User.Password"/> and <see cref="User.Nickname"/> will be used.
/// If null, then not change.
|