parent
f96b256ad3
commit
ee9df21ae5
@ -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,12 +32,12 @@ 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."
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a card's id is too big to generate a ean-13 barcode for it.
|
* Error to throw when a card's id is too big to generate a ean-13 barcode for it.
|
||||||
* This error should never reach a enduser.
|
* This error should never reach a end user.
|
||||||
*/
|
*/
|
||||||
export class RunnerCardIdOutOfRangeError extends Error {
|
export class RunnerCardIdOutOfRangeError extends Error {
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@ -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()
|
||||||
|
@ -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 no groupname is set.
|
* Error to throw when no group name is set.
|
||||||
*/
|
*/
|
||||||
export class GroupNameNeededError extends NotFoundError {
|
export class GroupNameNeededError extends NotFoundError {
|
||||||
@IsString()
|
@IsString()
|
||||||
@ -13,7 +13,7 @@ export class GroupNameNeededError extends NotFoundError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a usergroup couldn't be found.
|
* Error to throw when a user group couldn't be found.
|
||||||
*/
|
*/
|
||||||
export class UserGroupNotFoundError extends NotFoundError {
|
export class UserGroupNotFoundError extends NotFoundError {
|
||||||
@IsString()
|
@IsString()
|
||||||
@ -24,13 +24,13 @@ export class UserGroupNotFoundError extends NotFoundError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when two usergroups' ids don't match.
|
* Error to throw when two user groups' ids don't match.
|
||||||
* Usually occurs when a user tries to change a usergroups's id.
|
* Usually occurs when a user tries to change a user groups's id.
|
||||||
*/
|
*/
|
||||||
export class UserGroupIdsNotMatchingError extends NotAcceptableError {
|
export class UserGroupIdsNotMatchingError extends NotAcceptableError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "UserGroupIdsNotMatchingError"
|
name = "UserGroupIdsNotMatchingError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "The ids don't match!! \n If you wanted to change a usergroup's id: This isn't allowed!"
|
message = "The ids don't match!! \n If you wanted to change a user group's id: This isn't allowed!"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user