Class FHIRException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.linuxforhealth.fhir.exception.FHIRException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FHIRGeneratorException
,FHIRInvalidResourceTypeException
,FHIRLoadException
,FHIROperationException
,FHIRParserException
,FHIRPatchException
,FHIRPathException
public class FHIRException extends java.lang.Exception
Common FHIR Server exception base class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FHIRException()
FHIRException(java.lang.String message)
FHIRException(java.lang.String message, java.lang.Throwable cause)
FHIRException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
addProbeId(java.lang.String msg)
Add this exception's probeId value to the messagejava.lang.String
getUniqueId()
Builds and returns a unique identifier for this exception instance.java.lang.String
toString()
-
-
-
Constructor Detail
-
FHIRException
public FHIRException()
- See Also:
Exception()
-
FHIRException
public FHIRException(java.lang.String message)
- See Also:
Exception(String)
-
FHIRException
public FHIRException(java.lang.String message, java.lang.Throwable cause)
- See Also:
Exception(String, Throwable)
-
FHIRException
public FHIRException(java.lang.Throwable cause)
- See Also:
Exception(Throwable)
-
-
Method Detail
-
getUniqueId
public java.lang.String getUniqueId()
Builds and returns a unique identifier for this exception instance. This unique id consists of the ip address of the FHIR server host, represented in hex, followed by a UUID.- Returns:
- String - A unique identifier for this exception instance.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
addProbeId
public java.lang.String addProbeId(java.lang.String msg)
Add this exception's probeId value to the message- Parameters:
msg
-- Returns:
-
-