本文整理了Java中com.quinsoft.zeidon.ZeidonLogger.error()
方法的一些代码示例,展示了ZeidonLogger.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZeidonLogger.error()
方法的具体详情如下:
包路径:com.quinsoft.zeidon.ZeidonLogger
类名称:ZeidonLogger
方法名:error
暂无
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
private void close(ResultSet rs)
{
try
{
if (rs != null)
{
rs.close();
}
}
catch (SQLException e)
{
task.dblog().error( e );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
/**
* @param logger
*/
private static String getClassPath( ZeidonLogger logger )
{
try
{
StringBuilder classpath = new StringBuilder();
ClassLoader classLoader = classpath.getClass().getClassLoader();
if ( classLoader == null )
classLoader = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader) classLoader).getURLs();
for ( URL url : urls )
classpath.append( url.getFile() ).append( "\n" );
return classpath.toString();
}
catch( Exception e )
{
if ( logger != null )
logger.error( "Error trying to log classpath", e, (Object[]) null );
return "<Error retrieving classpath>";
}
}
代码示例来源:origin: com.quinsoft.zeidon/object-browser
void error( String format, Object...args )
{
oe.getSystemTask().log().error( format, args );
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
@Override
public String startObjectBrowser()
{
if ( oe == null )
return "ObjectEngine not specified";
try
{
if ( oe.startBrowser() )
return "Browser started";
else
return "Error starting browser. See log for more info.";
}
catch ( Exception e )
{
oe.getSystemTask().log().error( e );
return "Error starting browser: " + e.getMessage();
}
}
代码示例来源: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/object-browser
env.getOe().getSystemTask().log().error( "Couldn't open help-text.html.txt" );
代码示例来源:origin: com.quinsoft.zeidon/object-browser
getView().log().error( e );
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
@Override
public void objectInstanceActivated( View view, View qualification, long millis, Exception exception )
{
try
{
EventInfo info = getEventInfo( view );
info.incrementActivate( millis, exception );
info = getEventInfo( view.getApplication() );
info.incrementActivate( millis, exception );
}
catch ( Exception e )
{
oe.getSystemTask().log().error( e );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
qualBuilder.getTask().log().error( "JSON = \n%s", json );
ZeidonException ze = ZeidonException.wrapException( e );
JsonLocation loc = jp.getCurrentLocation();
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
@Override
public void objectInstanceCommitted( Collection<View> viewList, long millis, Exception exception )
{
try
{
for ( View view : viewList )
{
if ( view == null )
continue;
EventInfo info = getEventInfo( view );
info.incrementCommit( millis, exception );
info = getEventInfo( view.getApplication() );
info.incrementCommit( millis, exception );
}
}
catch ( Exception e )
{
oe.getSystemTask().log().error( e );
}
}
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
task.log().error( "Error in Activate", e, (Object[]) null );
代码示例来源:origin: com.quinsoft.zeidon/zeidon-joe
@Override
public void setAttribute(PortableFileReader reader)
{
String attributeName = reader.getAttributeName();
switch ( attributeName )
{
case "RECNAME": recordName = reader.getAttributeValue(); break;
case "TYPE": type = reader.getAttributeValue(); break;
case "JOIN": joinable = reader.valueStartsWith( "Y" ); break;
case "ACTIVATEONE":
activateWithSingleSelect = reader.valueStartsWith( "Y" );
if ( activateWithSingleSelect )
{
// Make sure all parents have activateWithSingleSelect turned on.
for ( EntityDef def = entityDef; def.getParent() != null; def = def.getParent() )
{
DataRecord dataRecord = def.getDataRecord();
if ( ! dataRecord.isActivateWithSingleSelect() && ! dataRecord.isJoinable() )
{
reader.getLogger().error( "Child DataRecord = %s\nParent DataRecord = %s",
this.toString(), dataRecord.toString() );
throw new ZeidonException( "Internal error. Parent isn't set to ACTIVATESINGLE. See logs for more" );
}
}
}
break;
}
}
内容来源于网络,如有侵权,请联系作者删除!