Class IntegrationModuleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- be.business.connector.core.exceptions.IntegrationModuleException
-
- All Implemented Interfaces:
Serializable
public class IntegrationModuleException extends RuntimeException
The Class IntegrationModuleException.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntegrationModuleException()IntegrationModuleException(String message)Instantiates a new integration module exception.IntegrationModuleException(String message, ResponseType response)Instantiates a new integration module exception.IntegrationModuleException(String code, String message)Instantiates a new integration module exception.IntegrationModuleException(String message, Throwable cause)Instantiates a new integration module exception.IntegrationModuleException(Throwable cause)Instantiates a new integration module exception.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Gets the code.StringgetLocalizedMessage()StringgetMessage()StringgetMessage(LangageType language)Gets the messages.StringgetMessageCode()List<LocalisedString>getMessages()Gets the messages.PrescriptionStatusgetPrescriptionStatus()StringgetStatusUpdater()Gets the status updater.static StringgetUserLocale()Gets the user locale.voidsetCode(String code)Sets the code.voidsetMessageCode(String messageCode)voidsetMessages(List<LocalisedString> messages)Sets the messages.voidsetPrescriptionStatus(PrescriptionStatus prescriptionStatus)voidsetStatusUpdater(String statusUpdater)Sets the status updater.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IntegrationModuleException
public IntegrationModuleException()
-
IntegrationModuleException
public IntegrationModuleException(String message, Throwable cause)
Instantiates a new integration module exception.- Parameters:
message- the messagecause- the cause
-
IntegrationModuleException
public IntegrationModuleException(String code, String message)
Instantiates a new integration module exception.- Parameters:
code- the codemessage- the message
-
IntegrationModuleException
public IntegrationModuleException(String message, ResponseType response)
Instantiates a new integration module exception.- Parameters:
message- the message
-
IntegrationModuleException
public IntegrationModuleException(String message)
Instantiates a new integration module exception.- Parameters:
message- the message
-
IntegrationModuleException
public IntegrationModuleException(Throwable cause)
Instantiates a new integration module exception.- Parameters:
cause- the cause
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getUserLocale
public static String getUserLocale()
Gets the user locale.- Returns:
- the user locale
-
getCode
public String getCode()
Gets the code.- Returns:
- the code
-
setCode
public void setCode(String code)
Sets the code.- Parameters:
code- the code to set
-
getStatusUpdater
public String getStatusUpdater()
Gets the status updater.- Returns:
- the statusUpdater
-
setStatusUpdater
public void setStatusUpdater(String statusUpdater)
Sets the status updater.- Parameters:
statusUpdater- the statusUpdater to set
-
getMessageCode
public String getMessageCode()
- Returns:
- the messageCode
-
setMessageCode
public void setMessageCode(String messageCode)
- Parameters:
messageCode- the messageCode to set
-
getMessages
public List<LocalisedString> getMessages()
Gets the messages.- Returns:
- the messages
-
getMessage
public String getMessage(LangageType language)
Gets the messages.- Returns:
- the messages
-
setMessages
public void setMessages(List<LocalisedString> messages)
Sets the messages.- Parameters:
messages- the messages to set
-
getPrescriptionStatus
public PrescriptionStatus getPrescriptionStatus()
- Returns:
- the prescriptionStatus
-
setPrescriptionStatus
public void setPrescriptionStatus(PrescriptionStatus prescriptionStatus)
- Parameters:
prescriptionStatus- the prescriptionStatus to set
-
-