VistALink v1.5.0.026

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

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.resource.ResourceException
              extended bygov.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. Nested exception handling code is identical to FoundationsException nested exception handling code.

Nested exception is not stored as a memeber of this class as ResourceException has it's own member variable that is used to store nested exception.

Version:
1.5.0.026
Author:
Application Modernization - Foundations Team
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()
          Returns the composite message and full embedded stack trace stack trace
 java.lang.String getMessage()
          Returns the detail message, including nested messages from the nested exceptions.
 java.lang.Throwable getNestedException()
          Return full stack trace.
 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, 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 occured
 
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 occured
errorCode - application level code reason why this exception occured
 
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 occured
errorCode - application level code reason why this exception occured
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 occured
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()
Return full stack trace. Full stack trace will include all nested exception messages and the full stack trace for the root exception.

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.

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.

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.

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.

See Also:
Throwable.printStackTrace()

getFullStackTrace

public java.lang.String getFullStackTrace()
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.5.0.026

VistALink v1.5.0.026