org.osgi.framework
Class BundleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.osgi.framework.BundleException
All Implemented Interfaces:
java.io.Serializable

public class BundleException
extends java.lang.Exception

A Framework exception used to indicate that a bundle lifecycle problem occurred.

BundleException object is created by the Framework to denote an exception condition in the lifecycle of a bundle. BundleExceptions should not be created by bundle developers.

Version:
$Revision: 1.1 $
Author:
Open Services Gateway Initiative
See Also:
Serialized Form

Constructor Summary
BundleException(java.lang.String msg)
          Creates a BundleException object with the specified message.
BundleException(java.lang.String msg, java.lang.Throwable throwable)
          Creates a BundleException that wraps another exception.
 
Method Summary
 java.lang.Throwable getNestedException()
          Returns any nested exceptions included in this exception.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleException

public BundleException(java.lang.String msg,
                       java.lang.Throwable throwable)
Creates a BundleException that wraps another exception.

Parameters:
msg - The associated message.
throwable - The nested exception.

BundleException

public BundleException(java.lang.String msg)
Creates a BundleException object with the specified message.

Parameters:
msg - The message.
Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Returns any nested exceptions included in this exception.

Returns:
The nested exception; null if there is no nested exception.


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.