Last change
on this file since a51a591 was a51a591, checked in by colovik <j.colovik@…>, 14 months ago |
final
|
-
Property mode
set to
100644
|
File size:
359 bytes
|
Line | |
---|
1 | package com.example.exceptions;
|
---|
2 |
|
---|
3 | import org.springframework.http.HttpStatus;
|
---|
4 | import org.springframework.web.bind.annotation.ResponseStatus;
|
---|
5 |
|
---|
6 | @ResponseStatus(code = HttpStatus.NOT_FOUND)
|
---|
7 | public class NoSuchIDException extends RuntimeException{
|
---|
8 | public NoSuchIDException(Integer id) {
|
---|
9 | super(String.format("There is no user with id %d", id));
|
---|
10 | }
|
---|
11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.