| 
 | OSGi™ Service Platform Release 4 Version 4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.osgi.service.application.ApplicationException
public class ApplicationException
This exception is used to indicate problems related to application lifecycle
 management.
 
 ApplicationException object is created by the Application Admin
 to denote an exception condition in the lifecycle of an application.
 ApplicationExceptions should not be created by developers. 
 ApplicationExceptions are associated with an error code. This
 code describes the type of problem reported in this exception. The possible
 codes are:
 
APPLICATION_LOCKED - The application couldn't be launched
 because it is locked.APPLICATION_NOT_LAUNCHABLE - The application is not in
 launchable state.APPLICATION_INTERNAL_ERROR - An exception was thrown by the
 application or its container during launch.APPLICATION_SCHEDULING_FAILED - The scheduling of an application
 failed.
 APPLICATION_DUPLICATE_SCHEDULE_ID - The application scheduling
 failed because the specified identifier is already in use.
 APPLICATION_EXITVALUE_NOT_AVAILABLE - The exit value is not
 available for an application instance because the instance has not
 terminated.
 APPLICATION_INVALID_STARTUP_ARGUMENT - One of the specified 
 startup arguments is invalid, for example its type is not permitted.
 
| Field Summary | |
|---|---|
| static int | APPLICATION_DUPLICATE_SCHEDULE_IDThe application scheduling failed because the specified identifier is already in use. | 
| static int | APPLICATION_EXITVALUE_NOT_AVAILABLEThe exit value is not available for an application instance because the instance has not terminated. | 
| static int | APPLICATION_INTERNAL_ERRORAn exception was thrown by the application or the corresponding container during launch. | 
| static int | APPLICATION_INVALID_STARTUP_ARGUMENTOne of the specified startup arguments is invalid, for example its type is not permitted. | 
| static int | APPLICATION_LOCKEDThe application couldn't be launched because it is locked. | 
| static int | APPLICATION_NOT_LAUNCHABLEThe application is not in launchable state, it's ApplicationDescriptor.APPLICATION_LAUNCHABLEattribute is false. | 
| static int | APPLICATION_SCHEDULING_FAILEDThe application schedule could not be created due to some internal error (for example, the schedule information couldn't be saved due to some storage error). | 
| Constructor Summary | |
|---|---|
| ApplicationException(int errorCode)Creates an ApplicationExceptionwith the specified error code. | |
| ApplicationException(int errorCode,
                     java.lang.String message)Creates an ApplicationExceptionwith the specified error code. | |
| ApplicationException(int errorCode,
                     java.lang.String message,
                     java.lang.Throwable cause)Creates a ApplicationExceptionthat wraps another exception. | |
| ApplicationException(int errorCode,
                     java.lang.Throwable cause)Creates a ApplicationExceptionthat wraps another exception. | |
| Method Summary | |
|---|---|
|  java.lang.Throwable | getCause()Returns the cause of this exception or nullif no cause was
 set. | 
|  int | getErrorCode()Returns the error code associated with this exception. | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int APPLICATION_LOCKED
public static final int APPLICATION_NOT_LAUNCHABLE
ApplicationDescriptor.APPLICATION_LAUNCHABLE
 attribute is false.
public static final int APPLICATION_INTERNAL_ERROR
getCause().
public static final int APPLICATION_SCHEDULING_FAILED
public static final int APPLICATION_DUPLICATE_SCHEDULE_ID
public static final int APPLICATION_EXITVALUE_NOT_AVAILABLE
public static final int APPLICATION_INVALID_STARTUP_ARGUMENT
| Constructor Detail | 
|---|
public ApplicationException(int errorCode)
ApplicationException with the specified error code.
errorCode - The code of the error
public ApplicationException(int errorCode,
                            java.lang.Throwable cause)
ApplicationException that wraps another exception.
errorCode - The code of the errorcause - The cause of this exception.
public ApplicationException(int errorCode,
                            java.lang.String message)
ApplicationException with the specified error code.
errorCode - The code of the errormessage - The associated message
public ApplicationException(int errorCode,
                            java.lang.String message,
                            java.lang.Throwable cause)
ApplicationException that wraps another exception.
errorCode - The code of the errormessage - The associated message.cause - The cause of this exception.| Method Detail | 
|---|
public java.lang.Throwable getCause()
null if no cause was
 set.
getCause in class java.lang.Throwablenull if no cause was
         set.public int getErrorCode()
| 
 | OSGi™ Service Platform Release 4 Version 4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||