ca.uhn.hl7v2.llp
Class LLPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ca.uhn.hl7v2.llp.LLPException
All Implemented Interfaces:
java.io.Serializable

public class LLPException
extends java.lang.Exception

Represents a problem encountered while using a Lower Layer Protocol. This exception serves to wrap the wide variety of other exceptions that might be encountered with various protocols.

Author:
Bryan Tripp
See Also:
Serialized Form

Constructor Summary
LLPException(java.lang.String msg)
          Constructs an LLPException with the specified detail message.
LLPException(java.lang.String msg, java.lang.Exception e)
          Constructs an LLPException with the specified detail message and embedded exception.
 
Method Summary
 java.lang.Exception getException()
          Returns the embedded exception (if any) - this would normally represent the underlying cause of this LLPException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

LLPException

public LLPException(java.lang.String msg)
Constructs an LLPException with the specified detail message.

Parameters:
msg - the detail message.

LLPException

public LLPException(java.lang.String msg,
                    java.lang.Exception e)
Constructs an LLPException with the specified detail message and embedded exception.

Parameters:
msg - the detail message.
e - an embedded exception (should normally represent the cause of the LLPException)
Method Detail

getException

public java.lang.Exception getException()
Returns the embedded exception (if any) - this would normally represent the underlying cause of this LLPException. For example, an UnsupportedEncodingException may be raised in a MinLowerLayerProtocol - if this happened the MinLowerLayerProtocol would throw an LLPException, wrapping the original UnsupportedEncodingException, and a call to getException() would return the UnsupportedEncodingException.



Copyright © 2001-2011 University Health Network. All Rights Reserved.