|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+package io.zipcoder.tc_spring_poll_application.exception;
|
|
|
2
|
+
|
|
|
3
|
+import org.springframework.http.HttpStatus;
|
|
|
4
|
+import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
5
|
+
|
|
|
6
|
+@ResponseStatus(HttpStatus.NOT_FOUND)
|
|
|
7
|
+public class ResourceNotFoundException extends RuntimeException {
|
|
|
8
|
+
|
|
|
9
|
+ public ResourceNotFoundException() {
|
|
|
10
|
+ }
|
|
|
11
|
+
|
|
|
12
|
+ public ResourceNotFoundException(String message) {
|
|
|
13
|
+ super(message);
|
|
|
14
|
+ }
|
|
|
15
|
+
|
|
|
16
|
+ public ResourceNotFoundException(String message, Throwable cause) {
|
|
|
17
|
+ super(message, cause);
|
|
|
18
|
+ }
|
|
|
19
|
+
|
|
|
20
|
+}
|