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.
 
Method Summary
 ResourceWarning getLinkedWarning()
          Retrieves the warning chained to this ResourceWarning object.
 void setLinkedWarning(ResourceWarning warning)
          Adds an ResourceWarning object to the end of the chain.
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, setLinkedException
 
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
 

Constructor Detail

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 warning
errorcode - 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
Method Detail

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