mirror of https://github.com/bvn13/VoidForum.git
25 lines
528 B
Java
25 lines
528 B
Java
package ru.bvn13.voidforum.error;
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
/**
|
|
* @author Raysmond<i@raysmond.com>
|
|
*/
|
|
@ResponseStatus(value = HttpStatus.NOT_FOUND)
|
|
public final class NotFoundException extends RuntimeException {
|
|
private String message;
|
|
|
|
public NotFoundException(){
|
|
|
|
}
|
|
|
|
public NotFoundException(String message){
|
|
this.message = message;
|
|
}
|
|
|
|
@Override
|
|
public String getMessage(){
|
|
return message;
|
|
}
|
|
} |