Tabnine Logo
org.n52.shetland.ogc.ows.exception
Code IndexAdd Tabnine to your IDE (free)

How to use org.n52.shetland.ogc.ows.exception

Best Java code snippets using org.n52.shetland.ogc.ows.exception (Showing top 20 results out of 315)

origin: org.n52.shetland/shetland

  public OperationNotSupportedException(final String operation) {
    super(OwsExceptionCode.OperationNotSupported);
    at(operation).withMessage("The requested operation '%s' is not supported by this service!", operation);
  }
}
origin: org.n52.sensorweb.sos/hibernate-handler

protected void handleHibernateException(HibernateException he) throws OwsExceptionReport {
  HTTPStatus status = HTTPStatus.INTERNAL_SERVER_ERROR;
  throw new NoApplicableCodeException().causedBy(he).withMessage("Error while deleting result templates!")
      .setStatus(status);
}
origin: org.n52.arctic-sea/shetland

public MissingParameterValueException(final String parameter) {
  super(OwsExceptionCode.MissingParameterValue);
  at(parameter).withMessage("The value for the parameter '%s' is missing in the request!", parameter);
  setStatus(HTTPStatus.BAD_REQUEST);
}
origin: org.n52.wps/service

private static OwsExceptionReport duplicateOutput(OwsCode id) {
  return new InvalidParameterValueException().at(OUTPUT).withMessage("Duplicate output definition for output %s",
      id);
}
origin: org.n52.sensorweb.sos/hibernate-session-factory

  public static Session getSession(Object connection) throws OwsExceptionReport {
    if (connection == null) {
      throw new NoApplicableCodeException().withMessage("The parameter connection is null!");
    }
    if (!(connection instanceof Session)) {
      throw new NoApplicableCodeException().withMessage("The parameter connection is not an Hibernate Session!");
    }
    return (Session) connection;
  }
}
origin: org.n52.arctic-sea/shetland

public InvalidParameterValueException(final String parameterName, final String value) {
  super(OwsExceptionCode.InvalidParameterValue);
  withMessage("The value '%s' of the parameter '%s' is invalid", value, parameterName).at(parameterName);
  setStatus(HTTPStatus.BAD_REQUEST);
}
origin: org.n52.arctic-sea/shetland

/**
 * @return <tt>true</tt>, if a HTTP response code for this
 *         {@code OwsExceptionReport} or any sub exception is available
 */
public final boolean hasStatus() {
  return getStatus() != null;
}
origin: org.n52.arctic-sea/shetland

public void throwIfNotEmpty() throws CompositeOwsException {
  if (hasExceptions()) {
    throw this;
  }
}
origin: org.n52.shetland/shetland

  public MissingParameterValueException() {
    super(OwsExceptionCode.MissingParameterValue);
    setStatus(HTTPStatus.BAD_REQUEST);
  }
}
origin: org.n52.arctic-sea/shetland

  @SuppressWarnings("ThrowableResultIgnored")
  public VersionNegotiationFailedException() {
    super(OwsExceptionCode.VersionNegotiationFailed);
    setStatus(HTTPStatus.BAD_REQUEST);
  }
}
origin: org.n52.shetland/shetland

  public InvalidUpdateSequenceException() {
    super(OwsExceptionCode.InvalidUpdateSequence);
    setStatus(HTTPStatus.BAD_REQUEST);
  }
}
origin: org.n52.shetland/shetland

  public OptionNotSupportedException() {
    super(OwsExceptionCode.OptionNotSupported);
    setStatus(HTTPStatus.BAD_REQUEST);
  }
}
origin: 52North/SOS

protected void handleHibernateException(HibernateException he) throws OwsExceptionReport {
  HTTPStatus status = HTTPStatus.INTERNAL_SERVER_ERROR;
  String exceptionMsg = "Error while inserting new featureOfInterest!";
  throw new NoApplicableCodeException().causedBy(he).withMessage(exceptionMsg).setStatus(status);
}
origin: org.n52.shetland/shetland

public MissingParameterValueException(final String parameter) {
  super(OwsExceptionCode.MissingParameterValue);
  at(parameter).withMessage("The value for the parameter '%s' is missing in the request!", parameter);
  setStatus(HTTPStatus.BAD_REQUEST);
}
origin: org.n52.arctic-sea/shetland

  public OperationNotSupportedException(final String operation) {
    super(OwsExceptionCode.OperationNotSupported);
    at(operation).withMessage("The requested operation '%s' is not supported by this service!", operation);
  }
}
origin: org.n52.shetland/shetland

public InvalidParameterValueException(final String parameterName, final String value) {
  super(OwsExceptionCode.InvalidParameterValue);
  withMessage("The value '%s' of the parameter '%s' is invalid", value, parameterName).at(parameterName);
  setStatus(HTTPStatus.BAD_REQUEST);
}
origin: org.n52.shetland/shetland

/**
 * @return <tt>true</tt>, if a HTTP response code for this
 *         {@code OwsExceptionReport} or any sub exception is available
 */
public final boolean hasStatus() {
  return getStatus() != null;
}
origin: org.n52.arctic-sea/shetland

  public MissingParameterValueException() {
    super(OwsExceptionCode.MissingParameterValue);
    setStatus(HTTPStatus.BAD_REQUEST);
  }
}
origin: org.n52.sensorweb.sos/hibernate-handler

protected void handleHibernateException(HibernateException he) throws OwsExceptionReport {
  HTTPStatus status = HTTPStatus.INTERNAL_SERVER_ERROR;
  String exceptionMsg = "Error while inserting new featureOfInterest!";
  throw new NoApplicableCodeException().causedBy(he).withMessage(exceptionMsg).setStatus(status);
}
origin: 52North/SOS

protected void handleHibernateException(HibernateException he) throws OwsExceptionReport {
  HTTPStatus status = HTTPStatus.INTERNAL_SERVER_ERROR;
  throw new NoApplicableCodeException().causedBy(he).withMessage("Error while deleting result templates!")
      .setStatus(status);
}
org.n52.shetland.ogc.ows.exception

Most used classes

  • NoApplicableCodeException
    Implementation of CodedOwsException to be used if No other exceptionCode specified by this service
  • CodedException
  • CompositeOwsException
    Composite OwsExceptionReport which can contain several OwsExceptionReports which were thrown
  • InvalidParameterValueException
    Implementation of CodedOwsException to be used if Operation request contains an invalid parameter v
  • MissingParameterValueException
    Implementation of CodedOwsException to be used if Operation request does not include a parameter va
  • MissingServiceParameterException,
  • OptionNotSupportedException,
  • MissingVersionParameterException,
  • OperationNotSupportedException,
  • VersionNegotiationFailedException,
  • ExceptionCode,
  • CompositeOwsException$ExceptionCollector,
  • InvalidUpdateSequenceException,
  • OwsExceptionCode
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now