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

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years 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.