作者:九橙seven | 来源:互联网 | 2023-05-19 09:45
本文整理了Java中org.osgi.service.cm.ConfigurationException.getMessage()方法的一些代码示例,展示了ConfigurationException
本文整理了Java中org.osgi.service.cm.ConfigurationException.getMessage()
方法的一些代码示例,展示了ConfigurationException.getMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConfigurationException.getMessage()
方法的具体详情如下:
包路径:org.osgi.service.cm.ConfigurationException
类名称:ConfigurationException
方法名:getMessage
ConfigurationException.getMessage介绍
暂无
代码示例
代码示例来源:origin: apache/stanbol
@SuppressWarnings("unchecked")
public LanguageConfiguration(String property, String[] defaultConfig){
if(property == null || property.isEmpty()){
throw new IllegalArgumentException("The parsed property MUST NOT be NULL nor empty!");
}
this.property = property;
this.defaultCOnfig= defaultConfig != null ? Arrays.asList(defaultConfig) :
Collections.EMPTY_LIST;
try {
parseConfiguration(this.defaultConfig);
} catch (ConfigurationException e) {
throw new IllegalArgumentException("Inalied default configuration "
+ e.getMessage());
}
}
代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.enhancer.nlp
@SuppressWarnings("unchecked")
public LanguageConfiguration(String property, String[] defaultConfig){
if(property == null || property.isEmpty()){
throw new IllegalArgumentException("The parsed property MUST NOT be NULL nor empty!");
}
this.property = property;
this.defaultCOnfig= defaultConfig != null ? Arrays.asList(defaultConfig) :
Collections.EMPTY_LIST;
try {
parseConfiguration(this.defaultConfig);
} catch (ConfigurationException e) {
throw new IllegalArgumentException("Inalied default configuration "
+ e.getMessage());
}
}
代码示例来源:origin: apache/stanbol
/**
* Creates a new configuration with the minimal set of required properties
* @param id the ID of the Yard
* @throws IllegalArgumentException if the parsed valued do not fulfil the
* requirements.
*/
public SimpleYardConfig(String id) throws IllegalArgumentException {
super(id);
try {
isValid();
} catch (ConfigurationException e) {
throw new IllegalArgumentException(e.getMessage(),e);
}
}
/**
代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core
/**
* Creates a new configuration with the minimal set of required properties
* @param id the ID of the Yard
* @throws IllegalArgumentException if the parsed valued do not fulfil the
* requirements.
*/
public SimpleYardConfig(String id) throws IllegalArgumentException {
super(id);
try {
isValid();
} catch (ConfigurationException e) {
throw new IllegalArgumentException(e.getMessage(),e);
}
}
/**
代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.yard.solr
/**
* Creates a new config with the minimal set of required properties
*
* @param id
* the ID of the Yard
* @param solrServer
* the base URL of the {@link SolrServer}
* @throws IllegalArgumentException
* if the parsed valued do not fulfil the requirements.
*/
public SolrYardConfig(String id, String solrServer) throws IllegalArgumentException {
super(id);
setSolrServerLocation(solrServer);
try {
isValid();
} catch (ConfigurationException e) {
throw new IllegalArgumentException(e.getMessage(), e);
}
}
代码示例来源:origin: apache/stanbol
/**
* Creates a new config with the minimal set of required properties
*
* @param id
* the ID of the Yard
* @param solrServer
* the base URL of the {@link SolrServer}
* @throws IllegalArgumentException
* if the parsed valued do not fulfil the requirements.
*/
public SolrYardConfig(String id, String solrServer) throws IllegalArgumentException {
super(id);
setSolrServerLocation(solrServer);
try {
isValid();
} catch (ConfigurationException e) {
throw new IllegalArgumentException(e.getMessage(), e);
}
}
代码示例来源:origin: ops4j/org.ops4j.pax.jdbc
pdsfFilter = DataSourceConfigManager.getPooledDSFFilter(loadedConfig);
} catch (ConfigurationException e) {
throw new IllegalArgumentException(e.getMessage(), e);
代码示例来源:origin: org.ops4j.pax.jdbc/pax-jdbc-config
pdsfFilter = DataSourceConfigManager.getPooledDSFFilter(loadedConfig);
} catch (ConfigurationException e) {
throw new IllegalArgumentException(e.getMessage(), e);