source: source/src/main/java/com/example/db/exceptions/UserNotFoundException.java

Last change on this file was bc0eeb4, checked in by Evgenija2000 <eva_nikolaevska@…>, 2 years ago

all files

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