Package com.ibm.fhir.exception
Class FHIRException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.fhir.exception.FHIRException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FHIRGeneratorException
,FHIRInvalidResourceTypeException
,FHIRLoadException
,FHIROperationException
,FHIRParserException
,FHIRPatchException
,FHIRPathException
public class FHIRException extends Exception
Common FHIR Server exception base class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FHIRException()
FHIRException(String message)
FHIRException(String message, Throwable cause)
FHIRException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addProbeId(String msg)
Add this exception's probeId value to the messageString
getUniqueId()
Builds and returns a unique identifier for this exception instance.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
FHIRException
public FHIRException()
- See Also:
Exception()
-
FHIRException
public FHIRException(String message)
- See Also:
Exception(String)
-
FHIRException
public FHIRException(String message, Throwable cause)
- See Also:
Exception(String, Throwable)
-
FHIRException
public FHIRException(Throwable cause)
- See Also:
Exception(Throwable)
-
-
Method Detail
-
getUniqueId
public 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.
-
-