Skip to content

Instantly share code, notes, and snippets.

@azizkale
Created August 20, 2023 14:53
Show Gist options
  • Save azizkale/9fad21d22beed6825ec9b29a4a20ebe0 to your computer and use it in GitHub Desktop.
Save azizkale/9fad21d22beed6825ec9b29a4a20ebe0 to your computer and use it in GitHub Desktop.
the article - How to implement Hibernate in Spring Boot
package com.kale.hibernatetutorial.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class EmployeeNotFoundException extends RuntimeException{
public EmployeeNotFoundException(String message) {
super(message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment