public void error(Throwable exception)
    {
        if (logger.isLoggable(SEVERE)) {
            logger.log(SEVERE, exception.getMessage(), exception);
        }
    }
public void error(Throwable exception)
    {
        if (logger.isLoggable(SEVERE)) {
            logger.log(SEVERE, exception.getMessage(), exception);
        }
    }
public void error ( Throwable exception ) { if ( logger . isLoggable ( SEVERE ) ) { logger . log ( SEVERE , exception . getMessage ( ) , exception ) ; } }
Logs a message at ERROR level. The value of {@code exception.getMessage()} will be used as the log message.
<p>
Usage example:
<pre>
logger.error(e);
</pre>

@param exception an exception associated with the error being logged
Logs a message at ERROR level . The value of { @code exception . getMessage () } will be used as the log message . <p > Usage example : <pre > logger . error ( e ) ; < / pre >