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 | |
---|
1 | package com.example.demo.exceptions;
|
---|
2 |
|
---|
3 | import org.springframework.http.HttpStatus;
|
---|
4 | import org.springframework.web.bind.annotation.ResponseStatus;
|
---|
5 |
|
---|
6 | @ResponseStatus(HttpStatus.NOT_FOUND)
|
---|
7 | public 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.