21 lines
495 B
Java
21 lines
495 B
Java
package eu.dnetlib.openaire.context;
|
|
|
|
import java.io.IOException;
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
@ResponseBody
|
|
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
|
|
public class ContextException extends Exception {
|
|
|
|
public ContextException(final String message) {
|
|
super(message);
|
|
}
|
|
|
|
public ContextException(final IOException e) {
|
|
super(e);
|
|
}
|
|
}
|