VLJ Iteration II, v. 1.0.0.193

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

java.lang.Object
  |
  +--ResourceException
        |
        +--gov.va.med.foundations.adapter.cci.VistaLinkResourceException
All Implemented Interfaces:
FoundationsExceptionInterface
Direct Known Subclasses:
ConnectionHandlesExceededException, VistaLinkSocketClosedException

public class VistaLinkResourceException
extends 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.0.0.193
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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VistaLinkResourceException

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

Parameters:
reason - application level reason why this exception occured

VistaLinkResourceException

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

Parameters:
e - exception to nest in new VistaLinkResourceException

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

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

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
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()

VLJ Iteration II, v. 1.0.0.193

VistaLink Iteration II, v. 1.0.0.193