OSGi™ Service Platform
Release 2

org.osgi.framework
Class BundleException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.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.

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.

OSGi™ Service Platform
Release 2

Copyright © OSGi Alliance (2000, 2002). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0