| @@ -3,7 +3,6 @@ import { NotAcceptableError, NotFoundError } from 'routing-controllers'; | ||||
|  | ||||
| /** | ||||
|  * Error to throw when a runner team couldn't be found. | ||||
|  * Implemented this ways to work with the json-schema conversion for openapi. | ||||
|  */ | ||||
| export class RunnerTeamNotFoundError extends NotFoundError { | ||||
| 	@IsString() | ||||
| @@ -15,32 +14,29 @@ export class RunnerTeamNotFoundError extends NotFoundError { | ||||
|  | ||||
| /** | ||||
|  * Error to throw when two runner teams' ids don't match. | ||||
|  * Usually occurs when a user tries to change a runner's id. | ||||
|  * Implemented this way to work with the json-schema conversion for openapi. | ||||
|  * Usually occurs when a user tries to change a runner team's id. | ||||
|  */ | ||||
| export class RunnerTeamIdsNotMatchingError extends NotAcceptableError { | ||||
| 	@IsString() | ||||
| 	name = "RunnerTeamIdsNotMatchingError" | ||||
|  | ||||
| 	@IsString() | ||||
| 	message = "The id's don't match!! \n And if you wanted to change a runner's id: This isn't allowed" | ||||
| 	message = "The ids don't match!! \n And if you wanted to change a runner's id: This isn't allowed" | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * Error to throw when a team still has runners associated. | ||||
|  * Implemented this waysto work with the json-schema conversion for openapi. | ||||
|  */ | ||||
| export class RunnerTeamHasRunnersError extends NotAcceptableError { | ||||
| 	@IsString() | ||||
| 	name = "RunnerTeamHasRunnersError" | ||||
|  | ||||
| 	@IsString() | ||||
| 	message = "This team still has runners associated with it. \n If you want to delete this team with all it's runners and teams ass `?force` to your query." | ||||
| 	message = "This team still has runners associated with it. \n If you want to delete this team with all it's runners and teams add `?force` to your query." | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * Error to throw when a team still has runners associated. | ||||
|  * Implemented this waysto work with the json-schema conversion for openapi. | ||||
|  */ | ||||
| export class RunnerTeamNeedsParentError extends NotAcceptableError { | ||||
| 	@IsString() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user