| package com.example.myproject.exception; |
| |
| import lombok.Data; |
| import lombok.EqualsAndHashCode; |
| |
| public class BusinessException extends RuntimeException { |
| /** |
| * Constructs a new runtime exception with the specified detail message. |
| * The cause is not initialized, and may subsequently be initialized by a |
| * call to {@link #initCause}. |
| * |
| * @param message the detail message. The detail message is saved for |
| * later retrieval by the {@link #getMessage()} method. |
| */ |
| public BusinessException(String message) { |
| super(message); |
| } |
| } |
| |