All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.textrecruit.ustackserverapi.exceptions.APIStatusException Maven / Gradle / Ivy

There is a newer version: 1.0.31
Show newest version
package com.textrecruit.ustackserverapi.exceptions;

import org.jboss.netty.handler.codec.http.HttpResponseStatus;

import com.textrecruit.ustackserverapi.APIException;

public class APIStatusException extends APIException {

	private static final long serialVersionUID = 1L;

	public APIStatusException() { 
		super();
	}
	
	public APIStatusException(String msg) {
		super(msg);
	}
	
	protected HttpResponseStatus status;

	public HttpResponseStatus getHttpStatus() {
		if (status == null)
			return HttpResponseStatus.FORBIDDEN;
		return status;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy