14
src/errors/RunnerGroupErrors.ts
Normal file
14
src/errors/RunnerGroupErrors.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { IsString } from 'class-validator';
|
||||
import { NotFoundError } from 'routing-controllers';
|
||||
|
||||
/**
|
||||
* Error to throw when a runner group couldn't be found.
|
||||
* Implemented this ways to work with the json-schema conversion for openapi.
|
||||
*/
|
||||
export class RunnerGroupNotFoundError extends NotFoundError {
|
||||
@IsString()
|
||||
name = "RunnerGroupNotFoundError"
|
||||
|
||||
@IsString()
|
||||
message = "RunnerGroup not found!"
|
||||
}
|
||||
Reference in New Issue
Block a user