parent
82ced34750
commit
37afc10e44
@ -3,7 +3,6 @@ import { NotAcceptableError, NotFoundError } from 'routing-controllers';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a runner organisation couldn't be found.
|
* Error to throw when a runner organisation couldn't be found.
|
||||||
* Implemented this ways to work with the json-schema conversion for openapi.
|
|
||||||
*/
|
*/
|
||||||
export class RunnerOrganisationNotFoundError extends NotFoundError {
|
export class RunnerOrganisationNotFoundError extends NotFoundError {
|
||||||
@IsString()
|
@IsString()
|
||||||
@ -15,39 +14,36 @@ export class RunnerOrganisationNotFoundError extends NotFoundError {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when two runner organisations' ids don't match.
|
* Error to throw when two runner organisations' 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 organisation's id.
|
||||||
* Implemented this way to work with the json-schema conversion for openapi.
|
|
||||||
*/
|
*/
|
||||||
export class RunnerOrganisationIdsNotMatchingError extends NotAcceptableError {
|
export class RunnerOrganisationIdsNotMatchingError extends NotAcceptableError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "RunnerOrganisationIdsNotMatchingError"
|
name = "RunnerOrganisationIdsNotMatchingError"
|
||||||
|
|
||||||
@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 organisation's id: This isn't allowed!"
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a organisation still has runners associated.
|
* Error to throw when a organisation still has runners associated.
|
||||||
* Implemented this waysto work with the json-schema conversion for openapi.
|
|
||||||
*/
|
*/
|
||||||
export class RunnerOrganisationHasRunnersError extends NotAcceptableError {
|
export class RunnerOrganisationHasRunnersError extends NotAcceptableError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "RunnerOrganisationHasRunnersError"
|
name = "RunnerOrganisationHasRunnersError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "This organisation still has runners associated with it. \n If you want to delete this organisation with all it's runners and teams ass `?force` to your query."
|
message = "This organisation still has runners associated with it. \n If you want to delete this organisation with all it's runners and teams add `?force` to your query."
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a organisation still has runners associated.
|
* Error to throw when a organisation still has teams associated.
|
||||||
* Implemented this waysto work with the json-schema conversion for openapi.
|
|
||||||
*/
|
*/
|
||||||
export class RunnerOrganisationHasTeamsError extends NotAcceptableError {
|
export class RunnerOrganisationHasTeamsError extends NotAcceptableError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "RunnerOrganisationHasTeamsError"
|
name = "RunnerOrganisationHasTeamsError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "This organisation still has teams associated with it. \n If you want to delete this organisation with all it's runners and teams ass `?force` to your query."
|
message = "This organisation still has teams associated with it. \n If you want to delete this organisation with all it's runners and teams add `?force` to your query."
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user