public class HFMException extends Exception
| Constructor and Description |
|---|
HFMException()
The default constructor HFMException class.
|
HFMException(HFMException ex)
Construct an HFM Exception with the assocated exception.
|
HFMException(String errorCode)
Construct an exception with the assocated error code.
|
HFMException(String errorCode,
List<String> params)
Construct an exception with the assocated error code and detailed exception message.
|
HFMException(String message,
String localizedMessage)
Should be used when server returns back a localized message indicating an error
try{
// some server code here.
|
HFMException(THFMException ex)
This exception has the constructor taking the THFMException argument.
|
HFMException(THFMException ex,
String errorCode)
This exception has the constructor taking the THFMException argument.
|
HFMException(THFMException ex,
String errorCode,
List<String> params)
This exception has the constructor taking the THFMException argument.
|
HFMException(Throwable throwable)
This exception has the constructor taking the throwable argument.
|
HFMException(Throwable throwable,
String errorCode)
This exception has the constructor taking the throwable argument and ErrorCodeConstants Error code..
|
HFMException(Throwable throwable,
String errorCode,
List<String> params)
This exception has the constructor taking the throwable argument, ErrorCodeConstants Error code and List of Strings with more message for the exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
get the error code for the current exception.
|
String |
getExceptionType()
get the exception type as string.
|
int |
getHResult()
get the HR result value.
|
String |
getLocalizedMessage()
Returns the localized message for the current exception error code.
|
String |
getLocalizedMessage(Locale locale)
get the localized message for the current exception error code for the given locale.
|
String |
getMessage()
The current error message for this exception would be returned.
|
List<String> |
getParams()
get the error messages as list of string.
|
List<TraceEntry> |
getServerStackTrace() |
boolean |
hasGlobalErrors() |
void |
setErrorCode(String errorCode) |
void |
setExceptionType(String exceptionType)
set the exception type as string.
|
void |
setHResult(int hResult)
Set the HResult value.
|
void |
setLocalizedMessage(String localizedMessage)
set the localised message for the current exception.
|
void |
setMessage(String message)
Sets the error message for the current exception.
|
void |
setParams(List<String> params)
set the error messages as list of string.
|
void |
setServerStackTrace(List<TraceEntry> stackTrace) |
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HFMException()
public HFMException(HFMException ex)
ex - - the base exception encountered.public HFMException(String errorCode)
errorCode - - the detailed error message for the exception encountered.public HFMException(String errorCode, List<String> params)
errorCode - - the error code message for the exception encountered.params - - the list of error message encountered.public HFMException(String message, String localizedMessage)
message - - the actual translated message (not a key to resources)localizedMessage - - the actual localized translated message (not a key to resources)public HFMException(Throwable throwable)
throwable - - the actual exception encountered.public HFMException(Throwable throwable, String errorCode)
throwable - - the actual exception encountered.errorCode - - the error code for the exception encountered.public HFMException(Throwable throwable, String errorCode, List<String> params)
throwable - - the actual exception encountered.errorCode - - the error code message for the exception.params - - the detailed messaging for the exception.public HFMException(THFMException ex)
ex - - the actual exception encountered.public HFMException(THFMException ex, String errorCode)
ex - - the actual exception encountered.errorCode - - the Error code Constant .public HFMException(THFMException ex, String errorCode, List<String> params)
ex - - the actual exception encountered.errorCode - - the Error code Constant .params - - the list of error messages .public boolean hasGlobalErrors()
public void setHResult(int hResult)
hResult - - the hresult message.public int getHResult()
public void setExceptionType(String exceptionType)
exceptionType - - the exception type as stringpublic String getExceptionType()
public void setParams(List<String> params)
params - - the list of error messages encountered.public void setLocalizedMessage(String localizedMessage)
localizedMessage - - the localized message for the current exception.public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getLocalizedMessage(Locale locale)
locale - if the locale is found, the error message on the given locale would be returned.
if the locale is not found message for the default locale would be returned.public void setMessage(String message)
message - - the error code message.public String getMessage()
getMessage in class Throwablepublic void setServerStackTrace(List<TraceEntry> stackTrace)
public List<TraceEntry> getServerStackTrace()
public void setErrorCode(String errorCode)
public String getErrorCode()
Copyright 2007, 2026, Oracle. All rights reserved.