com.erigir.wrench.ape.exception.NoSuchVersionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wrench-ape Show documentation
Show all versions of wrench-ape Show documentation
A library to simplify API construction atop Spring MVC
package com.erigir.wrench.ape.exception;
import com.erigir.wrench.ape.http.ApeException;
import java.util.List;
/**
* Created by chrweiss on 6/28/14.
*/
@ApeException(
httpStatusCode = 404,
detailCode = 107,
message = "Your application is currently misconfigured",
developerMessage = "You requested a version of the API that does not currently exist",
detailObjectPropertyName = "validVersions"
)
public class NoSuchVersionException extends RuntimeException {
private List validVersions;
public NoSuchVersionException(List validVersions) {
this.validVersions = validVersions;
}
public List getValidVersions() {
return validVersions;
}
}