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

org.opengis.cite.iso19142.ExceptionCode Maven / Gradle / Ivy

There is a newer version: 2.0-r18
Show newest version
package org.opengis.cite.iso19142;

/**
 * An enumerated type defining OGC exception codes that appear in an exception
 * report. Each error code has an associated HTTP status code.
 * 
 * @see "OGC 09-025r2, Table D.2"
 */
public enum ExceptionCode {

	/** OGC 06-121r3, Table 25. */
	INVALID_PARAM_VALUE("InvalidParameterValue", 400);

	private final String ogcCode;
	private final int httpStatus;

	private ExceptionCode(String ogcCode, int httpStatus) {
		this.ogcCode = ogcCode;
		this.httpStatus = httpStatus;
	}

	public String ogcCode() {
		return ogcCode;
	}

	public int statusCode() {
		return httpStatus;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy