parent
ee76f1c0e8
commit
2199cb0aef
@ -2,14 +2,14 @@ import { IsString } from 'class-validator';
|
|||||||
import { NotAcceptableError, NotFoundError } from 'routing-controllers';
|
import { NotAcceptableError, NotFoundError } from 'routing-controllers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when no groupname is set
|
* Error to throw when no groupname is set.
|
||||||
*/
|
*/
|
||||||
export class GroupNameNeededError extends NotFoundError {
|
export class GroupNameNeededError extends NotFoundError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "GroupNameNeededError"
|
name = "GroupNameNeededError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "no groupname is set!"
|
message = "No name is set for this group!"
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,5 +32,5 @@ export class UserGroupIdsNotMatchingError extends NotAcceptableError {
|
|||||||
name = "UserGroupIdsNotMatchingError"
|
name = "UserGroupIdsNotMatchingError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "The id's don't match!! \n If you wanted to change a usergroup's id: This isn't allowed"
|
message = "The ids don't match!! \n If you wanted to change a usergroup's id: This isn't allowed!"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user