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

org.basex.http.HTTPException Maven / Gradle / Ivy

There is a newer version: 11.6
Show newest version
package org.basex.http;

import java.io.*;

/**
 * HTTP exception. Also thrown to pass on correct status codes.
 *
 * @author BaseX Team, BSD License
 * @author Christian Gruen
 */
public final class HTTPException extends IOException {
  /** Status code. */
  private final int status;

  /**
   * Constructs an exception with the specified message and extension.
   * @param description description
   * @param status status code
   */
  HTTPException(final String description, final int status) {
    super(description);
    this.status = status;
  }

  /**
   * Returns the status code.
   * @return status code
   */
  public int getStatus() {
    return status;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy