@@ -2,18 +2,7 @@ import { IsString } from 'class-validator';
 | 
				
			|||||||
import { NotAcceptableError, NotFoundError } from 'routing-controllers';
 | 
					import { NotAcceptableError, NotFoundError } from 'routing-controllers';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Error to throw, when a provided groupContact doesn't belong to the accepted types.
 | 
					 * Error to throw, when a non-existent contact get's requested.
 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
export class GroupContactWrongTypeError extends NotAcceptableError {
 | 
					 | 
				
			||||||
	@IsString()
 | 
					 | 
				
			||||||
	name = "GroupContactWrongTypeError"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	@IsString()
 | 
					 | 
				
			||||||
	message = "The groupContact must be an existing groupContact's id. \n You provided a object of another type."
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Error to throw, when a non-existent groupContact get's loaded.
 | 
					 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export class GroupContactNotFoundError extends NotFoundError {
 | 
					export class GroupContactNotFoundError extends NotFoundError {
 | 
				
			||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
@@ -22,3 +11,15 @@ export class GroupContactNotFoundError extends NotFoundError {
 | 
				
			|||||||
	@IsString()
 | 
						@IsString()
 | 
				
			||||||
	message = "The groupContact you provided couldn't be located in the system. \n Please check your request."
 | 
						message = "The groupContact you provided couldn't be located in the system. \n Please check your request."
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Error to throw when two contacts' ids don't match.
 | 
				
			||||||
 | 
					 * Usually occurs when a user tries to change a contact's id.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					export class GroupContactIdsNotMatchingError extends NotAcceptableError {
 | 
				
			||||||
 | 
						@IsString()
 | 
				
			||||||
 | 
						name = "GroupContactIdsNotMatchingError"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						@IsString()
 | 
				
			||||||
 | 
						message = "The ids don't match! \n And if you wanted to change a contact's id: This isn't allowed!"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user