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

org.geoserver.ows.HttpErrorCodeException Maven / Gradle / Ivy

package org.geoserver.ows;

/**
 * An exception thrown by a service to report back an http error code.
 * 

* Instances of this exception are recognized by the dispatcher. The {@link #getErrorCode()} * is used to set *

* @author Justin Deoliveira, The Open Planning Project * */ public class HttpErrorCodeException extends RuntimeException { /** * the error code */ final int errorCode; public HttpErrorCodeException(int errorCode) { super(); this.errorCode = errorCode; } public HttpErrorCodeException(int errorCode, String message, Throwable cause) { super(message, cause); this.errorCode = errorCode; } public HttpErrorCodeException(int errorCode, String message) { super(message); this.errorCode = errorCode; } public HttpErrorCodeException(int errorCode, Throwable cause) { super(cause); this.errorCode = errorCode; } public int getErrorCode() { return errorCode; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy