"WEBNMS_5 API Docs"

com.adventnet.management.log
Class LogErrUser

java.lang.Object
  extended by com.adventnet.management.log.LogUser
      extended by com.adventnet.management.log.LogErrUser

public class LogErrUser
extends LogUser

This class provides methods for printing logerror messages from the various modules. This class itself deprecated and won't be available in next release


Field Summary
 
Fields inherited from class com.adventnet.management.log.LogUser
m_is_enabled, m_level, m_log_writer, m_name
 
Constructor Summary
LogErrUser(java.lang.String name, int level, LogBaseWriter log_writer)
           
 
Method Summary
 void abort(java.lang.String fail_msg, java.lang.Throwable exception)
          Calls the fail method of LogUser
 void assert1(boolean condition, java.lang.String fail_msg)
          Calls the fail method if argument condition is false.
 void fail(java.lang.String fail_msg, java.lang.Throwable exception)
          Deprecated.  
 
Methods inherited from class com.adventnet.management.log.LogUser
flush, getLevel, isEnabled, isSuppressModuleNameLogging, log, logException, logStackTrace, setDisplayName, setLevel, setStatus, setSuppressModuleNameLogging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogErrUser

public LogErrUser(java.lang.String name,
                  int level,
                  LogBaseWriter log_writer)
Method Detail

fail

public void fail(java.lang.String fail_msg,
                 java.lang.Throwable exception)
Deprecated. 

calls the fail method of the LogUser class.

Overrides:
fail in class LogUser
Parameters:
fail_msg - a String to be printed.
exception - an Exception that is raised.

assert1

public void assert1(boolean condition,
                    java.lang.String fail_msg)
Calls the fail method if argument condition is false.

otherwise, no error message will be printed.

Overrides:
assert1 in class LogUser
Parameters:
condition - either true - it returns to calling to the method with out printing or false - it calls the fail method.
fail_msg - message to be printed.

abort

public void abort(java.lang.String fail_msg,
                  java.lang.Throwable exception)
Calls the fail method of LogUser

Overrides:
abort in class LogUser
Parameters:
fail_msg - a string to be printed.
an - Exception that is raised.

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.