- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.quinsoft.zeidon.ZeidonException.prependFilename()
方法的一些代码示例,展示了ZeidonException.prependFilename()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeidonException.prependFilename()
方法的具体详情如下:
包路径:com.quinsoft.zeidon.ZeidonException
类名称:ZeidonException
方法名:prependFilename
暂无
代码示例来源:origin: com.quinsoft.zeidon/object-browser
private void createBrowserDir( String dir )
{
File theDir = new File( dir );
// if the directory does not exist, create it
if ( theDir.exists() )
return;
try
{
theDir.mkdir();
}
catch ( Exception e )
{
throw ZeidonException.wrapException( e ).prependFilename( dir );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
/**
* Set the input stream by opening the file.
*
* @param file the file
*
* @return this
*/
public DeserializeOi fromFile( File file )
{
try
{
resourceName = file.getAbsolutePath();
inputStream = new FileInputStream( file );
setFormatFromFilename( resourceName, true );
return this;
}
catch ( FileNotFoundException e )
{
throw ZeidonException.wrapException( e ).prependFilename( resourceName );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
@Override
public String getAllProperties()
{
try
{
StringBuilder builder = new StringBuilder();
for ( String sectionName : iniConfObj.getSections() )
{
builder.append( "[" ).append( sectionName ).append( "]\n" );
for ( Iterator<String> iter = iniConfObj.getSection(sectionName).getKeys(); iter.hasNext(); )
{
String key = iter.next();
builder.append( key ).append( "=" ).append( get( sectionName, key, null ) ).append( "\n" );
}
builder.append( "\n" );
}
return builder.toString();
}
catch ( Exception e )
{
throw ZeidonException.wrapException( e ).prependFilename( iniFileName );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
throw ZeidonException.wrapException( e ).prependFilename( path );
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
@Override
public void reload()
{
ZeidonInputStream stream = null;
try
{
properties = new Properties();
stream = JoeUtils.getInputStream( null, filename, this.getClass().getClassLoader() );
if ( stream == null )
throw new ZeidonException( "Couldn't find property file" );
LOG.info( "Opening properties from: " + stream.getDescription() );
properties.load( stream );
sourceDescription = stream.getDescription();
}
catch ( Exception e )
{
throw ZeidonException.wrapException( e ).prependFilename( filename );
}
finally
{
IOUtils.closeQuietly( stream );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
throw ZeidonException.wrapException( e ).prependFilename( filename );
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
throw ZeidonException.wrapException( e ).prependFilename( filename );
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
/**
* Activate all the OIs from the stream and return a list of views.
*
* @return list of views in the stream.
*/
public List<View> activate()
{
try
{
return task.activateOisFromStream( this );
}
catch ( Exception e )
{
ZeidonException ze = ZeidonException.wrapException( e );
if ( ! StringUtils.isBlank( resourceName ) )
ze.prependFilename( resourceName );
if ( ! StringUtils.isBlank( inputString ) )
task.log().error( "OI String = %s", inputString );
throw ze;
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
public static void ReadPortableFile( Task task, String filename, ZeidonLogger logger, PortableFileEntityHandler entityHandler )
{
try
{
logger.debug( "Reading portable file %s", filename );
InputStream is = JoeUtils.getInputStream(task, filename, entityHandler.getClass().getClassLoader());
if ( is == null )
throw new ZeidonException( "Couldn't find file %s", filename );
ReadPortableFile( is, logger, entityHandler );
}
catch ( Exception e )
{
// Add filename to exception.
throw ZeidonException.wrapException( e ).prependFilename( filename );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
throw ZeidonException.wrapException( e ).prependFilename( filename );
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
private void loadZeidonIni( InputStream iniFile )
{
if ( iniFile == null )
throw new ZeidonException( "Could not find " + iniFileName );
InputStreamReader reader = new InputStreamReader( iniFile );
try
{
DefaultExpressionEngine engine = new DefaultExpressionEngine( DefaultExpressionEngineSymbols.DEFAULT_SYMBOLS,
NodeNameMatchers.EQUALS_IGNORE_CASE );
Parameters params = new Parameters();
FileBasedConfigurationBuilder<INIConfiguration> builder =
new FileBasedConfigurationBuilder<INIConfiguration>( INIConfiguration.class )
.configure( params.hierarchical().setExpressionEngine( engine ) );
iniConfObj = builder.getConfiguration();
iniConfObj.read( reader );
reader.close();
sectionNameMap = new HashMap<>();
for ( String sectionName : iniConfObj.getSections() )
sectionNameMap.put( sectionName.toLowerCase(), sectionName );
}
catch ( Exception e )
{
throw ZeidonException.wrapException( e ).prependFilename( iniFileName );
}
finally
{
IOUtils.closeQuietly( reader );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
private void loadLodDef( Task task, InputStream file )
{
try
{
PortableFileReader.ReadPortableFile( file, task.log(), new LodDefHandler( this ) );
task.log().info( "LodDef %s loaded from: %s", this, filename );
}
catch ( Exception e )
{
throw ZeidonException.wrapException( e ).prependFilename( filename );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
throw ZeidonException.wrapException( e ).prependFilename( resourceName );
本文整理了Java中com.quinsoft.zeidon.ZeidonLogger类的一些代码示例,展示了ZeidonLogger类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中com.quinsoft.zeidon.ZeidonException类的一些代码示例,展示了ZeidonException类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.info()方法的一些代码示例,展示了ZeidonLogger.info()的具体用法。这些代码示例主要来源于Gi
本文整理了Java中com.quinsoft.zeidon.ZeidonException.prependFilename()方法的一些代码示例,展示了ZeidonException.prependF
本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.setLevel()方法的一些代码示例,展示了ZeidonLogger.setLevel()的具体用法。这些代码示
本文整理了Java中com.quinsoft.zeidon.ZeidonException.wrapException()方法的一些代码示例,展示了ZeidonException.wrapExcept
本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.warn()方法的一些代码示例,展示了ZeidonLogger.warn()的具体用法。这些代码示例主要来源于Gi
本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.error()方法的一些代码示例,展示了ZeidonLogger.error()的具体用法。这些代码示例主要来源于
我是一名优秀的程序员,十分优秀!