@@ -9,11 +9,11 @@ export class AddressWrongTypeError extends NotAcceptableError {
 | 
				
			|||||||
	name = "AddressWrongTypeError"
 | 
						name = "AddressWrongTypeError"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
	message = "The address must be an existing adress's id. \n You provided a object of another type."
 | 
						message = "The address must be an existing address's id. \n You provided a object of another type."
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw, when a non-existant address get's loaded.
 | 
					 * Error to throw, when a non-existent address get's loaded.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class AddressNotFoundError extends NotFoundError {
 | 
					export class AddressNotFoundError extends NotFoundError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -118,7 +118,7 @@ export class RefreshTokenCountInvalidError extends NotAcceptableError {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw when someone tryes to reset a user's password more than once in 15 minutes.
 | 
					 * Error to throw when someone tries to reset a user's password more than once in 15 minutes.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class ResetAlreadyRequestedError extends NotAcceptableError {
 | 
					export class ResetAlreadyRequestedError extends NotAcceptableError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ export class GroupContactWrongTypeError extends NotAcceptableError {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw, when a non-existant groupContact get's loaded.
 | 
					 * Error to throw, when a non-existent groupContact get's loaded.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class GroupContactNotFoundError extends NotFoundError {
 | 
					export class GroupContactNotFoundError extends NotFoundError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,12 +13,12 @@ export class PrincipalNotFoundError extends NotFoundError {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw, when a provided runnerOrganisation doesn't belong to the accepted types.
 | 
					 * Error to throw, when a provided runner organization doesn't belong to the accepted types.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class PrincipalWrongTypeError extends NotAcceptableError {
 | 
					export class PrincipalWrongTypeError extends NotAcceptableError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
	name = "PrincipalWrongTypeError"
 | 
						name = "PrincipalWrongTypeError"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
	message = "The princial must have an existing principal's id. \n You provided a object of another type."
 | 
						message = "The principal must have an existing principal's id. \n You provided a object of another type."
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,7 +32,7 @@ export class RunnerCardHasScansError extends NotAcceptableError {
 | 
				
			|||||||
	name = "RunnerCardHasScansError"
 | 
						name = "RunnerCardHasScansError"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
	message = "This card still has scans associated with it. \n If you want to delete this card with all it's scans add `?force` to your query. \n Otherwise please consider just diableing it."
 | 
						message = "This card still has scans associated with it. \n If you want to delete this card with all it's scans add `?force` to your query. \n Otherwise please consider just disabling it."
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,5 +32,5 @@ export class RunnerGroupNeededError extends NotAcceptableError {
 | 
				
			|||||||
	name = "RunnerGroupNeededError"
 | 
						name = "RunnerGroupNeededError"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
	message = "Runner's need to be part of one group (team or organisiation)! \n You provided neither."
 | 
						message = "Runner's need to be part of one group (team or organisation)! \n You provided neither."
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -13,7 +13,7 @@ export class RunnerOrganisationNotFoundError extends NotFoundError {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw when two runner organisations' ids don't match.
 | 
					 * Error to throw when two runner organisation's ids don't match.
 | 
				
			||||||
 * Usually occurs when a user tries to change a runner organisation's id.
 | 
					 * Usually occurs when a user tries to change a runner organisation's id.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class RunnerOrganisationIdsNotMatchingError extends NotAcceptableError {
 | 
					export class RunnerOrganisationIdsNotMatchingError extends NotAcceptableError {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import { IsString } from 'class-validator';
 | 
				
			|||||||
import { NotAcceptableError, NotFoundError } from 'routing-controllers';
 | 
					import { NotAcceptableError, NotFoundError } from 'routing-controllers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw, when a non-existant scan station get's loaded.
 | 
					 * Error to throw, when a non-existent scan station get's loaded.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class ScanStationNotFoundError extends NotFoundError {
 | 
					export class ScanStationNotFoundError extends NotFoundError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import { IsString } from 'class-validator';
 | 
				
			|||||||
import { NotAcceptableError, NotFoundError } from 'routing-controllers';
 | 
					import { NotAcceptableError, NotFoundError } from 'routing-controllers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw, when a non-existant stats client get's loaded.
 | 
					 * Error to throw, when a non-existent stats client get's loaded.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class StatsClientNotFoundError extends NotFoundError {
 | 
					export class StatsClientNotFoundError extends NotFoundError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user