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

com.hubspot.baragon.service.exceptions.BaragonNotFoundException Maven / Gradle / Ivy

There is a newer version: 0.6.2
Show newest version
package com.hubspot.baragon.service.exceptions;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

public class BaragonNotFoundException extends WebApplicationException {

  /**
   * Create a HTTP 404 (Not Found) exception.
   */
  public BaragonNotFoundException() {
    super(Response.Status.NOT_FOUND);
  }

  /**
   * Create a HTTP 404 (Not Found) exception.
   * @param message the String that is the entity of the 404 response.
   */
  public BaragonNotFoundException(String message) {
    super(Response.status(Response.Status.NOT_FOUND).
      entity(message).type("text/plain").build());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy