Methods Summary |
---|
protected java.util.logging.Logger | getLogger()
return _logger;
|
public com.sun.enterprise.config.ConfigException | handleConfigException(java.lang.Exception ex, java.lang.String messageId, java.lang.String arg)
return handleConfigException(ex, messageId, new String[] {arg});
|
public com.sun.enterprise.config.ConfigException | handleConfigException(java.lang.Exception ex, java.lang.String messageId, java.lang.String[] args)Convert an incoming exception to an ConfigException and log if the incoming exception
is not a ConfigException
ConfigException result = null;
Level level = Level.FINE;
if (ex instanceof ConfigException) {
result = (ConfigException)ex;
} else {
level = Level.WARNING;
result = new ConfigException(ex);
}
StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());
getLogger().log(level, sm.getString(messageId, args), ex);
return result;
|
public com.sun.enterprise.admin.servermgmt.InstanceException | handleInstanceException(java.lang.Exception ex, java.lang.String messageId, java.lang.String arg)
return handleInstanceException(ex, messageId, new String[] {arg});
|
public com.sun.enterprise.admin.servermgmt.InstanceException | handleInstanceException(java.lang.Exception ex, java.lang.String messageId, java.lang.String[] args)Convert an incoming exception to an InstanceException and log if the incoming exception
is not an InstanceException.
InstanceException result = null;
Level level = Level.FINE;
if (ex instanceof InstanceException) {
result = (InstanceException)ex;
} else if (ex instanceof ConfigException) {
result = new InstanceException(ex);
} else {
level = Level.WARNING;
result = new InstanceException(ex);
}
StringManagerBase sm = StringManagerBase.getStringManager(getLogger().getResourceBundleName());
getLogger().log(level, sm.getString(messageId, args), ex);
return result;
|