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
|
Rev | Line | |
---|
[fc7ec52] | 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.