|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.osgi.service.deploymentadmin.spi.ResourceProcessorException
Checked exception received when something fails during a call to a Resource
Processor. A ResourceProcessorException
always contains an error
code (one of the constants specified in this class), and may optionally contain
the textual description of the error condition and a nested cause exception.
Field Summary | |
static int |
CODE_OTHER_ERROR
Other error condition. |
static int |
CODE_PREPARE
Resource Processors are allowed to raise an exception with this error code to indicate that the processor is not able to commit the operations it made since the last call of ResourceProcessor.begin(DeploymentSession) method. |
static int |
CODE_RESOURCE_SHARING_VIOLATION
An artifact of any resource already exists. |
Constructor Summary | |
ResourceProcessorException(int code)
Create an instance of the exception. |
|
ResourceProcessorException(int code,
java.lang.String message)
Create an instance of the exception. |
|
ResourceProcessorException(int code,
java.lang.String message,
java.lang.Throwable cause)
Create an instance of the exception. |
Method Summary | |
java.lang.Throwable |
getCause()
|
int |
getCode()
|
java.lang.String |
getMessage()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CODE_PREPARE
ResourceProcessor.begin(DeploymentSession)
method.
Only the ResourceProcessor.prepare()
method is allowed to throw exception
with this error code.
public static final int CODE_RESOURCE_SHARING_VIOLATION
Only the ResourceProcessor.process(String, InputStream)
method
is allowed to throw exception with this error code.
public static final int CODE_OTHER_ERROR
All Resource Processor methods which throw ResourceProcessorException
is allowed throw an exception with this erro code if the error condition cannot be
categorized.
Constructor Detail |
public ResourceProcessorException(int code, java.lang.String message, java.lang.Throwable cause)
code
- The error code of the failure. Code should be one of the
predefined integer values (CODE_X
).message
- Message associated with the exceptioncause
- the originating exceptionpublic ResourceProcessorException(int code, java.lang.String message)
code
- The error code of the failure. Code should be one of the
predefined integer values (CODE_X
).message
- Message associated with the exceptionpublic ResourceProcessorException(int code)
code
- The error code of the failure. Code should be one of the
predefined integer values (CODE_X
).Method Detail |
public java.lang.Throwable getCause()
public int getCode()
public java.lang.String getMessage()
|
OSGi™ Service Platform Release 4 Version 4.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |