mirror of https://github.com/halo-dev/halo
25 lines
490 B
Java
25 lines
490 B
Java
package run.halo.app.exception;
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
/**
|
|
* Exception caused by service.
|
|
*
|
|
* @author johnniang
|
|
*/
|
|
public class ServiceException extends AbstractHaloException {
|
|
|
|
public ServiceException(String message) {
|
|
super(message);
|
|
}
|
|
|
|
public ServiceException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
|
|
@Override
|
|
public HttpStatus getStatus() {
|
|
return HttpStatus.INTERNAL_SERVER_ERROR;
|
|
}
|
|
}
|