Skip to content

Instantly share code, notes, and snippets.

@Shashwat79802
Created June 10, 2023 12:21
Show Gist options
  • Save Shashwat79802/22944671b0bb83cb0ea25a0671d5c9bf to your computer and use it in GitHub Desktop.
Save Shashwat79802/22944671b0bb83cb0ea25a0671d5c9bf to your computer and use it in GitHub Desktop.
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