Added more runner errors

ref #13
This commit is contained in:
Nicolai Ort 2020-12-02 19:41:03 +01:00
parent 52e9d3a908
commit cb5d5e546d
1 changed files with 25 additions and 0 deletions

View File

@ -24,4 +24,29 @@ export class RunnerIdsNotMatchingError extends NotAcceptableError {
@IsString()
message = "The id's don't match!! \n And if you wanted to change a runner's id: This isn't allowed"
}
export class RunnerOnlyOneGroupAllowedError extends NotAcceptableError {
@IsString()
name = "RunnerOnlyOneGroupAllowedError"
@IsString()
message = "Runner's can only be part of one group (team or organisiation)! \n You provided an id for both."
}
export class RunnerGroupNeededError extends NotAcceptableError {
@IsString()
name = "RunnerGroupNeededError"
@IsString()
message = "Runner's need to be part of one group (team or organisiation)! \n You provided neither."
}
export class RunnerGroupNotFoundError extends NotFoundError {
@IsString()
name = "RunnerGroupNotFoundError"
@IsString()
message = "The group you provided couldn't be located in the system. \n Please check your request."
}