Package org.openrdf.http.protocol.error

Examples of org.openrdf.http.protocol.error.ErrorType


  static final int STATUS_CODE = HttpURLConnection.HTTP_BAD_REQUEST;

  public static BadRequest create(String msg) {
    ErrorInfo errInfo = ErrorInfo.parse(msg);
    ErrorType type = errInfo.getErrorType();
    if (type == ErrorType.UNSUPPORTED_FILE_FORMAT) {
      return new UnsupportedFileFormat(errInfo.getErrorMessage());
    }
    else if (type == ErrorType.UNSUPPORTED_QUERY_LANGUAGE) {
      return new UnsupportedQueryLanguage(errInfo.getErrorMessage());
View Full Code Here

TOP

Related Classes of org.openrdf.http.protocol.error.ErrorType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.