Skip to content

Instantly share code, notes, and snippets.

@azizkale
Created August 20, 2023 14:54
Show Gist options
  • Save azizkale/cecc6d3feaac439e015eb2a1381be4e3 to your computer and use it in GitHub Desktop.
Save azizkale/cecc6d3feaac439e015eb2a1381be4e3 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.INTERNAL_SERVER_ERROR)
public class InternalServerException extends RuntimeException {
public InternalServerException(Throwable cause) {
super(cause);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment