Class InternalException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.axis.InternalException
All Implemented Interfaces:

public class InternalException
extends java.lang.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.

See Also:
Serialized Form

Constructor Summary
InternalException(java.lang.Exception e)
          Construct an Internal Exception from an Exception.
InternalException(java.lang.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.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


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

message - String form of the error


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

e - original exception which was unexpected
Method Detail


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

logging - true if you wish logging to be enabled, false otherwise


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

true if we are logging, false otherwise

Copyright 2003 Apache Web Services Project. A ll Rights Reserved.