org.apache.axis

Class InternalException

public class InternalException extends RuntimeException

Encapsulates exceptions for "should never occur" situations. Extends RuntimeException so it need not explicitly be caught. Logs the exception as a fatal error, and if debug is enabled, includes the full stack trace.

Author: Sam Ruby (rubys@us.ibm.com) Glyn Normington (glyn_normington@uk.ibm.com)

Field Summary
protected static Loglog
The Log used by this class to log messages.
Constructor Summary
InternalException(String message)
Construct an Internal Exception from a String.
InternalException(Exception e)
Construct an Internal Exception from an Exception.
Method Summary
static booleangetLogging()
Discover whether the logging flag is set.
static voidsetLogging(boolean logging)
Enable or dissable logging.

Field Detail

log

protected static Log log
The Log used by this class to log messages.

Constructor Detail

InternalException

public InternalException(String message)
Construct an Internal Exception from a String. The string is wrapped in an exception, enabling a stack traceback to be obtained.

Parameters: message String form of the error

InternalException

public InternalException(Exception e)
Construct an Internal Exception from an Exception.

Parameters: e original exception which was unexpected

Method Detail

getLogging

public static boolean getLogging()
Discover whether the logging flag is set.

Returns: true if we are logging, false otherwise

setLogging

public static void setLogging(boolean logging)
Enable or dissable logging.

Parameters: logging true if you wish logging to be enabled, false otherwise

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.