source: source/MovieZilla-master/src/main/java/com/example/demo/exceptions/UserNotFoundException.java@ fc7ec52

Last change on this file since fc7ec52 was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 22 months ago

all files

  • Property mode set to 100644
File size: 386 bytes
Line 
1package com.example.demo.exceptions;
2
3import org.springframework.http.HttpStatus;
4import org.springframework.web.bind.annotation.ResponseStatus;
5
6@ResponseStatus(HttpStatus.NOT_FOUND)
7public class UserNotFoundException extends RuntimeException{
8
9 public UserNotFoundException(String username) {
10 super(String.format("User with username: %s was not found", username));
11 }
12}
Note: See TracBrowser for help on using the repository browser.