Created
June 10, 2023 12:21
-
-
Save Shashwat79802/22944671b0bb83cb0ea25a0671d5c9bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.potionsbank.exception; | |
import org.springframework.web.bind.annotation.ResponseStatus; | |
import java.io.Serial; | |
@ResponseStatus | |
public class ResourceNotFoundException extends RuntimeException { | |
@Serial | |
private static final long serialVersionUID = 1L; | |
public ResourceNotFoundException(String message) { | |
super(message); | |
} | |
public ResourceNotFoundException(String message, Throwable throwable) { | |
super(message, throwable); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment