
com.nhl.link.rest.LinkRestException Maven / Gradle / Ivy
package com.nhl.link.rest;
import javax.ws.rs.core.Response.Status;
/**
* An exception that renders ExtJS-friendly JSON response. Can be used by the
* application code and is also used by the framework internally.
*/
public class LinkRestException extends RuntimeException {
private static final long serialVersionUID = 1L;
private Status status;
public LinkRestException() {
this(Status.INTERNAL_SERVER_ERROR);
}
public LinkRestException(Status status) {
this(status, null, null);
}
public LinkRestException(Status status, String message) {
this(status, message, null);
}
public LinkRestException(Status status, String message, Throwable cause) {
super(message, cause);
this.status = status;
}
public Status getStatus() {
return status;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy