ca.uhn.hl7v2.llp
Class LLPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ca.uhn.hl7v2.llp.LLPException
- All Implemented Interfaces:
- Serializable
public class LLPException
- extends 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(String msg)
Constructs an LLPException with the specified detail message. |
LLPException(String msg,
Exception e)
Constructs an LLPException with the specified detail message
and embedded exception. |
|
Method Summary |
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 |
LLPException
public LLPException(String msg)
- Constructs an
LLPException with the specified detail message.
- Parameters:
msg - the detail message.
LLPException
public LLPException(String msg,
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)
getException
public 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-2012 University Health Network. All Rights Reserved.