当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Class ResourceWarning - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.resource.cci
Class ResourceWarning
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.resource.ResourceException
|
+--javax.resource.cci.ResourceWarning
- All Implemented Interfaces:
- java.io.Serializable
- public class ResourceWarning
- extends ResourceException
ResourceWarning provides information on warnings related to
execution of an interaction with an EIS. Warnings are silently
chained to the object whose method caused it to be reported.
- See Also:
Interaction.getWarnings()
, Serialized Form
Constructor Summary |
ResourceWarning(java.lang.String reason)
Constructs an ResourceWarning object
with the given value for a reason; errorCode defaults to
null. |
ResourceWarning(java.lang.String reason,
java.lang.String errorCode)
Constructs a fully-specified ResourceWarning object
initialized with the given values. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResourceWarning
public ResourceWarning(java.lang.String reason,
java.lang.String errorCode)
- Constructs a fully-specified
ResourceWarning
object
initialized with the given values.
- Parameters:
reason
- description of the warningerrorcode
- a string specifying the vendor specific
error code
ResourceWarning
public ResourceWarning(java.lang.String reason)
- Constructs an
ResourceWarning
object
with the given value for a reason; errorCode defaults to
null.
- Parameters:
reason
- description of the warning
getLinkedWarning
public ResourceWarning getLinkedWarning()
- Retrieves the warning chained to this
ResourceWarning
object.
- Returns:
- next ResourceWarning in the chain; null if none
setLinkedWarning
public void setLinkedWarning(ResourceWarning warning)
- Adds an
ResourceWarning
object to the end of the chain.
- Parameters:
warning
- ResourceWarning added to the chain