com.wadpam.gaelic.exception.MethodNotAllowedException Maven / Gradle / Ivy
The newest version!
/*
* INSERT COPYRIGHT HERE
*/
package com.wadpam.gaelic.exception;
import java.util.Collection;
/**
*
* @author sosandstrom
*/
public class MethodNotAllowedException extends RestException {
public static final String MESSAGE = "Method Not Allowed";
private final Collection allow;
public MethodNotAllowedException(int code, String developerMessage, String moreInfo, Collection allow) {
super(STATUS_METHOD_NOT_ALLOWED, MESSAGE, code, developerMessage, moreInfo);
this.allow = allow;
}
public MethodNotAllowedException(Collection allow) {
super(STATUS_METHOD_NOT_ALLOWED, MESSAGE);
this.allow = allow;
}
public Collection getAllow() {
return allow;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy