Error cleanup

#11 #13 #14
This commit is contained in:
2020-12-05 19:01:30 +01:00
parent 21ad622c10
commit 33b3bcb8c2
11 changed files with 50 additions and 43 deletions

View File

@@ -1,16 +1,6 @@
import { IsString } from 'class-validator';
import { NotAcceptableError, NotFoundError } from 'routing-controllers';
/**
* Error to throw when a usergroup couldn't be found.
*/
export class UserGroupNotFoundError extends NotFoundError {
@IsString()
name = "UserGroupNotFoundError"
@IsString()
message = "User Group not found!"
}
/**
* Error to throw when no username or email is set