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

com.hubspot.baragon.service.exceptions.BaragonWebException 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 BaragonWebException extends WebApplicationException {

  /**
   * Create a HTTP 500 (Not Found) exception.
   */
  public BaragonWebException() {
    super(Response.Status.INTERNAL_SERVER_ERROR);
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy