All files / app/errors/user profile-picture-not-found-error.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

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 181x           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;