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.
Authors:
Sam Ruby (rubys@us.ibm.com)
Glyn Normington (glyn_normington@uk.ibm.com)

Field Summary

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

Constructor Summary

InternalException(Exception e)
Construct an Internal Exception from an Exception.
InternalException(String message)
Construct an Internal Exception from a String.

Method Summary

static boolean
getLogging()
Discover whether the logging flag is set.
static void
setLogging(boolean logging)
Enable or dissable logging.

Field Details

log

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

Constructor Details

InternalException

public InternalException(Exception e)
Construct an Internal Exception from an Exception.
Parameters:
e - original exception which was unexpected

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

Method Details

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 © 2005 Apache Web Services Project. All Rights Reserved.