Skip to content

Commit c4e0725

Browse files
committed
Add custom ResourceNotFoundException class
1 parent 00aa19d commit c4e0725

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.codesungrape.hmcts.bookapi.exception;
2+
3+
/**
4+
* Custom exception to signal that a requested resource (Book, Reservation, etc.)
5+
* could not be found, typically mapping to HTTP 404.
6+
*/
7+
8+
public class ResourceNotFoundException extends RuntimeException {
9+
10+
public ResourceNotFoundException(String message) {
11+
super(message);
12+
}
13+
}

0 commit comments

Comments
 (0)