Guest User

ResourceNotFoundException.java

a guest
Feb 27th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. package com.example.apidemo.exception;
  2.  
  3. import org.springframework.http.HttpStatus;
  4. import org.springframework.web.bind.annotation.ResponseStatus;
  5.  
  6. @ResponseStatus(HttpStatus.NOT_FOUND)
  7. public class ResourceNotFoundException extends RuntimeException {
  8.     public ResourceNotFoundException(String message) {
  9.         super(message);
  10.     }
  11.  
  12.     public ResourceNotFoundException(String message, Throwable cause) {
  13.         super(message, cause);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment