Package ca.uhn.hl7v2.llp
Class LLPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ca.uhn.hl7v2.llp.LLPException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionLLPException(String msg) Constructs anLLPExceptionwith the specified detail message.LLPException(String msg, Exception e) Constructs anLLPExceptionwith the specified detail message and embedded exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LLPException
Constructs anLLPExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
LLPException
Constructs anLLPExceptionwith 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 Details
-
getException
Deprecated.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 togetException()would return the UnsupportedEncodingException.
-
Throwable.getCause()