parent
c1d784e29c
commit
5de81ad093
@ -3,7 +3,6 @@ import { NotAcceptableError, NotFoundError } from 'routing-controllers';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a runner couldn't be found.
|
* Error to throw when a runner couldn't be found.
|
||||||
* Implemented this ways to work with the json-schema conversion for openapi.
|
|
||||||
*/
|
*/
|
||||||
export class RunnerNotFoundError extends NotFoundError {
|
export class RunnerNotFoundError extends NotFoundError {
|
||||||
@IsString()
|
@IsString()
|
||||||
@ -16,14 +15,13 @@ export class RunnerNotFoundError extends NotFoundError {
|
|||||||
/**
|
/**
|
||||||
* Error to throw when two runners' ids don't match.
|
* Error to throw when two runners' ids don't match.
|
||||||
* Usually occurs when a user tries to change a runner's id.
|
* Usually occurs when a user tries to change a runner's id.
|
||||||
* Implemented this ways to work with the json-schema conversion for openapi.
|
|
||||||
*/
|
*/
|
||||||
export class RunnerIdsNotMatchingError extends NotAcceptableError {
|
export class RunnerIdsNotMatchingError extends NotAcceptableError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "RunnerIdsNotMatchingError"
|
name = "RunnerIdsNotMatchingError"
|
||||||
|
|
||||||
@IsString()
|
@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 id's don't match!! \n And if you wanted to change a runner's id: This isn't allowed!"
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user