- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.geoserver.wfs.WFSException.getMessage()
方法的一些代码示例,展示了WFSException.getMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WFSException.getMessage()
方法的具体详情如下:
包路径:org.geoserver.wfs.WFSException
类名称:WFSException
方法名:getMessage
暂无
代码示例来源:origin: org.geoserver/gs-wfs
/** https://osgeo-org.atlassian.net/browse/GEOS-1875 */
@Test
@SuppressWarnings("unchecked")
public void testInvalidTypeNameBbox() throws Exception {
Map raw = new HashMap();
raw.put("service", "WFS");
raw.put("version", "1.1.0");
raw.put("request", "GetFeature");
raw.put("bbox", "-80.4864795578115,25.6176257083275,-80.3401307394915,25.7002737069969");
raw.put("typeName", "cite:InvalidTypeName");
Map parsed = parseKvp(raw);
try {
// before fix for GEOS-1875 this would bomb out with an NPE instead of the proper
// exception
reader.read(WfsFactory.eINSTANCE.createGetFeatureType(), parsed, raw);
} catch (WFSException e) {
assertEquals("InvalidParameterValue", e.getCode());
assertEquals("typeName", e.getLocator());
System.out.println(e.getMessage());
assertTrue(e.getMessage().contains("cite:InvalidTypeName"));
}
}
代码示例来源:origin: org.geoserver/gs-wfs
/** Same as GEOS-1875, but let's check without bbox and without name prefix */
@SuppressWarnings("unchecked")
@Test
public void testInvalidTypeName() throws Exception {
Map raw = new HashMap();
raw.put("service", "WFS");
raw.put("version", "1.1.0");
raw.put("request", "GetFeature");
raw.put("typeName", "InvalidTypeName");
try {
Map parsed = parseKvp(raw);
reader.read(WfsFactory.eINSTANCE.createGetFeatureType(), parsed, raw);
} catch (WFSException e) {
assertEquals("InvalidParameterValue", e.getCode());
assertEquals("typeName", e.getLocator());
// System.out.println(e.getMessage());
assertTrue(e.getMessage().contains("InvalidTypeName"));
}
}
代码示例来源:origin: org.geoserver/gs-wfs
storedQueryProvider.createStoredQuery(sq, false).validate();
} catch (WFSException e) {
throw new WFSException(request, e.getMessage(), e, e.getCode());
} catch (Exception e) {
throw new WFSException(request, "Error validating stored query", e);
代码示例来源:origin: org.geoserver.script/gs-script-core
public void testHookError() throws Exception {
File script = copyOverFile("tx-error");
TransactionRequest tx = new TransactionRequest.WFS11(null);
TransactionResponse res = new TransactionResponse.WFS11(null);
Map context = new HashMap();
ScriptEngine eng = scriptMgr.createNewEngine(script);
eng.eval(new FileReader(script));
WfsTxHook hook = getScriptManager().lookupWfsTxHook(script);
try {
hook.handleBefore(eng, tx, context);
fail("exected WFS exception");
} catch (WFSException e) {
assertEquals("before exception", e.getMessage());
}
}
}
本文整理了Java中org.geoserver.wfs.WFSException.getCode()方法的一些代码示例,展示了WFSException.getCode()的具体用法。这些代码示例主要来
本文整理了Java中org.geoserver.wfs.WFSException.getLocator()方法的一些代码示例,展示了WFSException.getLocator()的具体用法。这些代
本文整理了Java中org.geoserver.wfs.WFSException.getMessage()方法的一些代码示例,展示了WFSException.getMessage()的具体用法。这些代
本文整理了Java中org.geoserver.wfs.WFSException.()方法的一些代码示例,展示了WFSException.()的具体用法。这些代码示例主要来源于Github/Stack
我是一名优秀的程序员,十分优秀!