javax.resource.cci
Class ResourceWarning

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.resource.ResourceException (src) 
              extended byjavax.resource.cci.ResourceWarning
All Implemented Interfaces:
java.io.Serializable

public class ResourceWarning
extends ResourceException (src)

ResourceWarning provides information on warnings generated by the underlying resource. They are chained to an Interaction object for later retrieval.

See Also:
Serialized Form

Constructor Summary
ResourceWarning()
          Create a warning
ResourceWarning(java.lang.String reason)
          Create a warning with a reason.
ResourceWarning(java.lang.String reason, java.lang.String errorCode)
          Create a warning with a reason and an errorCode.
ResourceWarning(java.lang.String reason, java.lang.Throwable throwable)
          Create a warning with a reason and an error.
ResourceWarning(java.lang.Throwable throwable)
          Create a warning with an error.
 
Method Summary
 ResourceWarning (src) getLinkedWarning()
          Deprecated. use getCause()
 void setLinkedWarning(ResourceWarning (src)  linkedWarning)
          Deprecated. use initCause()
 
Methods inherited from class javax.resource.ResourceException (src)
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Constructor Detail

ResourceWarning

public ResourceWarning()
Create a warning


ResourceWarning

public ResourceWarning(java.lang.String reason)
Create a warning with a reason.


ResourceWarning

public ResourceWarning(java.lang.String reason,
                       java.lang.String errorCode)
Create a warning with a reason and an errorCode.


ResourceWarning

public ResourceWarning(java.lang.String reason,
                       java.lang.Throwable throwable)
Create a warning with a reason and an error.

Parameters:
reason - the reason
throwable - the error

ResourceWarning

public ResourceWarning(java.lang.Throwable throwable)
Create a warning with an error.

Parameters:
throwable - the error
Method Detail

setLinkedWarning

public void setLinkedWarning(ResourceWarning (src)  linkedWarning)
Deprecated. use initCause()

Set a linked warning.


getLinkedWarning

public ResourceWarning (src)  getLinkedWarning()
Deprecated. use getCause()

Get any linked warning.