diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-22 17:10:44 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-29 16:50:20 +0300 |
commit | b9272d586510147dbfc4ebfcdf70b90d18e75abc (patch) | |
tree | c9fd9625d809a025617545590a782e5fe8b0fee9 /lib/Service/RoomService.php | |
parent | e643202be6047aee2d81742b1f82f724e82ac62b (diff) |
Document all reasons we throw
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service/RoomService.php')
-rw-r--r-- | lib/Service/RoomService.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index cee119c8e..1d25f2809 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -76,6 +76,8 @@ class RoomService { * @param string $objectId * @return Room * @throws InvalidArgumentException on too long or empty names + * @throws InvalidArgumentException unsupported type + * @throws InvalidArgumentException invalid object data */ public function createConversation(int $type, string $name, ?IUser $owner = null, string $objectType = '', string $objectId = ''): Room { $name = trim($name); |