ystx | dfd42b3 | 2025-06-07 13:26:52 +0800 | [diff] [blame] | 1 | package com.pt.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 | public ResourceNotFoundException() { |
| 9 | super(); |
| 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 | } |