1
0

Improved error handling. Added custom message when the configured LogFactory implementation does not extend LogFactory. This should make it easier to diagnose when a user has made a mistake in the logging configuration, for example by setting LogFactory to a Log implementation.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Burrell Donkin
2003-05-01 10:32:36 +00:00
parent 8d5b06149b
commit d8abaeb2b5
2 changed files with 26 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/LogConfigurationException.java,v 1.2 2003/03/30 23:42:36 craigmcc Exp $
* $Revision: 1.2 $
* $Date: 2003/03/30 23:42:36 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/LogConfigurationException.java,v 1.3 2003/05/01 10:32:36 rdonkin Exp $
* $Revision: 1.3 $
* $Date: 2003/05/01 10:32:36 $
*
* ====================================================================
*
@@ -68,7 +68,7 @@ package org.apache.commons.logging;
* factory methods.</p>
*
* @author Craig R. McClanahan
* @version $Revision: 1.2 $ $Date: 2003/03/30 23:42:36 $
* @version $Revision: 1.3 $ $Date: 2003/05/01 10:32:36 $
*/
public class LogConfigurationException extends RuntimeException {
@@ -117,7 +117,7 @@ public class LogConfigurationException extends RuntimeException {
*/
public LogConfigurationException(String message, Throwable cause) {
super(message);
super(message + " (Caused by " + cause + ")");
this.cause = cause; // Two-argument version requires JDK 1.4 or later
}