Jin | f50fba6 | 2025-06-09 22:47:24 +0800 | [diff] [blame] | 1 | package com.example.myproject.exception; |
| 2 | |
| 3 | import lombok.Data; |
| 4 | import lombok.EqualsAndHashCode; |
| 5 | |
| 6 | public class BusinessException extends RuntimeException { |
| 7 | /** |
| 8 | * Constructs a new runtime exception with the specified detail message. |
| 9 | * The cause is not initialized, and may subsequently be initialized by a |
| 10 | * call to {@link #initCause}. |
| 11 | * |
| 12 | * @param message the detail message. The detail message is saved for |
| 13 | * later retrieval by the {@link #getMessage()} method. |
| 14 | */ |
| 15 | public BusinessException(String message) { |
| 16 | super(message); |
| 17 | } |
| 18 | } |
| 19 | |