Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1x 1x 2x 1x | import {NotFoundError} from '@errors';
/**
* Not found error thrown if a user tries to get the profile picture of a user
* which doesn't exist.
*/
export class ProfilePictureNotFoundError extends NotFoundError {
/**
* Creates this error.
* @param userId - ID of the user of which the profile picture was queried
*/
constructor(userId: number) {
super('Couldn\'t find profile picture for user ' + userId);
}
}
export default ProfilePictureNotFoundError;
|