本文整理了Java中org.codehaus.plexus.logging.Logger.fatalError()
方法的一些代码示例,展示了Logger.fatalError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.fatalError()
方法的具体详情如下:
包路径:org.codehaus.plexus.logging.Logger
类名称:Logger
方法名:fatalError
暂无
代码示例来源:origin: org.apache.maven.shared/maven-shared-io
/** {@inheritDoc} */
public void severe( String message )
{
logger.fatalError( message );
}
代码示例来源:origin: com.marvelution.maven.components/maven-executor
/**
* {@inheritDoc}
*/
public void fatalError(String message) {
logger.fatalError(message);
}
代码示例来源:origin: com.marvelution.maven.components/maven-executor
/**
* {@inheritDoc}
*/
public void fatalError(String message, Throwable cause) {
logger.fatalError(message, cause);
}
代码示例来源:origin: apache/maven-release
@Override
public void fatalError( String message )
{
logger.fatalError( message );
}
代码示例来源:origin: org.apache.maven.mercury/mercury-plexus
public void fatal( String message, Throwable throwable )
{
_logger.fatalError( message, throwable );
}
代码示例来源:origin: apache/maven-release
@Override
public void fatalError( String message, Throwable error )
{
logger.fatalError( message, error );
}
代码示例来源:origin: org.apache.maven.mercury/mercury-plexus
public void fatal( String message )
{
_logger.fatalError( message );
}
代码示例来源:origin: io.teecube.t3/t3-common
private static void enforceFailure(Exception e, Logger logger) throws MavenExecutionException {
logger.fatalError(Messages.MESSAGE_SPACE);
logger.fatalError(Messages.ENFORCER_RULES_FAILURE);
logger.fatalError(Messages.MESSAGE_SPACE);
String message = "";
Throwable cause = e.getCause();
if (cause == null) {
cause = e;
}
if (cause != null && cause.getLocalizedMessage() != null) {
message = cause.getLocalizedMessage();
message = formatMessage(message);
// if (message != null) {
// message = message.substring(message.indexOf("\n")+1);
// message = "\n" + message;
// }
}
throw new MavenExecutionException(message, new MojoExecutionException(message));
}
}
代码示例来源:origin: org.codehaus.redback/redback-xwork-integration
getLogger().fatalError( msg.toString() );
代码示例来源:origin: org.eclipse.hudson.main/maven3-eventspy-3.0
public void delegate() {
switch (level) {
case LEVEL_DEBUG:
logger.debug(message, cause);
break;
case LEVEL_INFO:
logger.info(message, cause);
break;
case LEVEL_WARN:
logger.warn(message, cause);
break;
case LEVEL_ERROR:
logger.error(message, cause);
break;
case LEVEL_FATAL:
logger.fatalError(message, cause);
break;
default:
throw new Error();
}
}
代码示例来源:origin: org.hudsonci.plugins/maven3-eventspy-3.1
public void delegate() {
switch (level) {
case LEVEL_DEBUG:
logger.debug(message, cause);
break;
case LEVEL_INFO:
logger.info(message, cause);
break;
case LEVEL_WARN:
logger.warn(message, cause);
break;
case LEVEL_ERROR:
logger.error(message, cause);
break;
case LEVEL_FATAL:
logger.fatalError(message, cause);
break;
default:
throw new Error();
}
}
代码示例来源:origin: org.apache.maven/maven-toolchain
getLogger().fatalError("Error in component lookup", ex);
代码示例来源:origin: org.jvnet.hudson.main/maven3-eventspy-3.0
public void delegate() {
switch (level) {
case LEVEL_DEBUG:
logger.debug(message, cause);
break;
case LEVEL_INFO:
logger.info(message, cause);
break;
case LEVEL_WARN:
logger.warn(message, cause);
break;
case LEVEL_ERROR:
logger.error(message, cause);
break;
case LEVEL_FATAL:
logger.fatalError(message, cause);
break;
default:
throw new Error();
}
}
代码示例来源:origin: org.apache.maven/maven-toolchain
public Toolchain getToolchainFromBuildContext( String type,
MavenSession session )
{
Map context = retrieveContext(session);
if ( "javac".equals( type ))
{
//HACK to make compiler plugin happy
type = "jdk";
}
Object obj = context.get( getStorageKey( type ) );
ToolchainModel model = (ToolchainModel)obj;
if ( model != null )
{
try
{
ToolchainFactory fact = (ToolchainFactory) container.lookup(ToolchainFactory.ROLE, type);
return fact.createToolchain( model );
}
catch ( ComponentLookupException ex )
{
getLogger().fatalError("Error in component lookup", ex);
}
catch ( MisconfiguredToolchainException ex )
{
getLogger().error("Misconfigured toolchain.", ex);
}
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!