VistALink v1.6

gov.va.med.vistalink.adapter.cci
Class VistaLinkResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.resource.ResourceException
              extended by gov.va.med.vistalink.adapter.cci.VistaLinkResourceException
All Implemented Interfaces:
FoundationsExceptionInterface, java.io.Serializable
Direct Known Subclasses:
ConnectionHandlesExceededException, HeartBeatFailedException, VistaLinkSocketClosedException

public class VistaLinkResourceException
extends javax.resource.ResourceException
implements FoundationsExceptionInterface

Represents a ResourceException thrown by the VistaLink adapter.

Upgraded to support J2CA 1.5 ResourceException that uses JDK 1.4+ nested exception functionality rather than old J2CA 1.0 linked exception functionality.

See Also:
Serialized Form

Constructor Summary
VistaLinkResourceException(java.lang.Exception e)
          Constructor.
VistaLinkResourceException(java.lang.String reason)
          Constructor.
VistaLinkResourceException(java.lang.String reason, java.lang.Exception e)
          Constructor.
VistaLinkResourceException(java.lang.String reason, java.lang.String errorCode)
          Constructor.
VistaLinkResourceException(java.lang.String reason, java.lang.String errorCode, java.lang.Exception e)
          Constructor.
 
Method Summary
 java.lang.String getFullStackTrace()
          Deprecated. Use Throwable.getStackTrace() instead.
 java.lang.String getMessage()
          Returns the detail message, including nested messages from the nested exceptions.
 java.lang.Throwable getNestedException()
          Deprecated. Use getCause() instead.
 void printStackTrace()
          Prints the composite message and full embedded stack trace to System.err.
 void printStackTrace(java.io.PrintStream ps)
          Prints the composite message and full embedded stack trace to the specified stream ps.
 void printStackTrace(java.io.PrintWriter pw)
          Prints the composite message and full embedded stack trace to the specified print writer pw.
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, setErrorCode, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VistaLinkResourceException

public VistaLinkResourceException(java.lang.String reason)
Constructor.

Parameters:
reason - application level reason why this exception occurred
 
NOT FOR PUBLIC USE
This constructor, method or field is not for public use.

VistaLinkResourceException

public VistaLinkResourceException(java.lang.Exception e)
Constructor.

Parameters:
e - exception to nest in new VistaLinkResourceException
 
NOT FOR PUBLIC USE
This constructor, method or field is not for public use.

VistaLinkResourceException

public VistaLinkResourceException(java.lang.String reason,
                                  java.lang.String errorCode)
Constructor. Parameters are required by the parent class.

Parameters:
reason - application level reason why this exception occurred
errorCode - application level code reason why this exception occurred
 
NOT FOR PUBLIC USE
This constructor, method or field is not for public use.

VistaLinkResourceException

public VistaLinkResourceException(java.lang.String reason,
                                  java.lang.String errorCode,
                                  java.lang.Exception e)
Constructor. Parameters are required by the parent class.

Parameters:
reason - application level reason why this exception occurred
errorCode - application level code reason why this exception occurred
e - exception to nest in new VistaLinkResourceException
 
NOT FOR PUBLIC USE
This constructor, method or field is not for public use.

VistaLinkResourceException

public VistaLinkResourceException(java.lang.String reason,
                                  java.lang.Exception e)
Constructor.

Parameters:
reason - application level reason why this exception occurred
e - exception to nest in new VistaLinkResourceException
 
NOT FOR PUBLIC USE
This constructor, method or field is not for public use.
Method Detail

getNestedException

public java.lang.Throwable getNestedException()
Deprecated. Use getCause() instead.

Return nested exception, if any.

Specified by:
getNestedException in interface FoundationsExceptionInterface
Returns:
nested exception
See Also:
FoundationsExceptionInterface.getNestedException()

getMessage

public java.lang.String getMessage()
Returns the detail message, including nested messages from the nested exceptions.

Overrides:
getMessage in class javax.resource.ResourceException
See Also:
Throwable.getMessage()

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints the composite message and full embedded stack trace to the specified stream ps.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
ps - the print stream
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the composite message and full embedded stack trace to the specified print writer pw.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - the print writer
See Also:
Throwable.printStackTrace(java.io.PrintWriter)

printStackTrace

public void printStackTrace()
Prints the composite message and full embedded stack trace to System.err.

Overrides:
printStackTrace in class java.lang.Throwable
See Also:
Throwable.printStackTrace()

getFullStackTrace

public java.lang.String getFullStackTrace()
Deprecated. Use Throwable.getStackTrace() instead.

Returns the composite message and full embedded stack trace stack trace

Specified by:
getFullStackTrace in interface FoundationsExceptionInterface
Returns:
full stack trace String
See Also:
FoundationsExceptionInterface.getFullStackTrace()

VistALink v1.6

VistALink v1.6