Package com.priint.pubserver.errorcode
Class ErrorCodeInfo
java.lang.Object
com.priint.pubserver.errorcode.ErrorCodeInfo
- All Implemented Interfaces:
Serializable
Class representing the full information of error
It contains information about partner, module, error and solutions collected by ErrorCodeManager plugin methods.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Error code info.ErrorCodeInfo(int partnerIdentifier, String partnerName, String contactPerson, String contactPersonEmail, int moduleNo, String moduleName, String moduleDescription, String moduleConfigFile, int errorNo, String errorMessage, String errorLanguage, List<String> solution) Instantiates a new Error code info. -
Method Summary
Modifier and TypeMethodDescriptionGet the contact personGet the contact person emailGet the error languageGet the error messagegetErrorMessage(Object... args) Get the error message with embedded variables.getErrorMessage(String... args) Gets error message.intGet the error numberGet the filename of the partner's configuration file.Get the module description.Get the module name.intGet the module numberintGet the identifier of the partner.Get the name of the partner.Get the list of error solutionvoidsetContactPerson(String contactPerson) Set the contact personvoidsetContactPersonEmail(String contactPersonEmail) Set the contact personvoidsetErrorLanguage(String errorLanguage) Set the error languagevoidsetErrorMessage(String errorMessage) Set the error messagevoidsetErrorNo(int errorNo) Set the error numbervoidsetModuleConfigFile(String moduleConfigFile) Set the filename of the partner's configuration file.voidsetModuleDescription(String moduleDescription) Set the module description.voidsetModuleName(String moduleName) Set the module name.voidsetModuleNo(int moduleNo) Set the module numbervoidsetPartnerIdentifier(int partnerIdentifier) Set the identifier of the partner.voidsetPartnerName(String partnerName) Set the name of the partner.voidsetSolution(List<String> solution) Set the list of error solutiontoString()
-
Constructor Details
-
ErrorCodeInfo
public ErrorCodeInfo()Instantiates a new Error code info. -
ErrorCodeInfo
public ErrorCodeInfo(int partnerIdentifier, String partnerName, String contactPerson, String contactPersonEmail, int moduleNo, String moduleName, String moduleDescription, String moduleConfigFile, int errorNo, String errorMessage, String errorLanguage, List<String> solution) Instantiates a new Error code info.- Parameters:
partnerIdentifier- the partner identifierpartnerName- the partner namecontactPerson- the contact personcontactPersonEmail- the contact person emailmoduleNo- the module nomoduleName- the module namemoduleDescription- the module descriptionmoduleConfigFile- the module config fileerrorNo- the error noerrorMessage- the error messageerrorLanguage- the error languagesolution- the solution
-
-
Method Details
-
getPartnerIdentifier
public int getPartnerIdentifier()Get the identifier of the partner.- Returns:
- identifier int
-
setPartnerIdentifier
public void setPartnerIdentifier(int partnerIdentifier) Set the identifier of the partner.- Parameters:
identifier-
-
getPartnerName
Get the name of the partner.- Returns:
- partnerName String
-
setPartnerName
Set the name of the partner.- Parameters:
partnerName-
-
getModuleConfigFile
Get the filename of the partner's configuration file.- Returns:
- moduleConfigFile String
-
setModuleConfigFile
Set the filename of the partner's configuration file.- Parameters:
moduleConfigFile-
-
getContactPerson
Get the contact person- Returns:
- contactPerson String
-
setContactPerson
Set the contact person- Parameters:
contactPerson-
-
getContactPersonEmail
Get the contact person email- Returns:
- contactPersonEmail String
-
setContactPersonEmail
Set the contact person- Parameters:
contactPersonEmail-
-
getModuleNo
public int getModuleNo()Get the module number- Returns:
- moduleNo int
-
setModuleNo
public void setModuleNo(int moduleNo) Set the module number- Parameters:
moduleNo-
-
getModuleName
Get the module name.- Returns:
- moduleName String
-
setModuleName
Set the module name.- Parameters:
moduleName-
-
getModuleDescription
Get the module description.- Returns:
- moduleDescription String
-
setModuleDescription
Set the module description.- Parameters:
moduleDescription-
-
getErrorNo
public int getErrorNo()Get the error number- Returns:
- errorNo int
-
setErrorNo
public void setErrorNo(int errorNo) Set the error number- Parameters:
errorNo-
-
getErrorMessage
Get the error message- Returns:
- errorMessage String
-
getErrorMessage
Get the error message with embedded variables. The message string contains variable(s) in the form of {0} {1} etc.
- Parameters:
args- array of objects used as values of parameters- Returns:
- errorMessage String
-
getErrorMessage
Gets error message.- Parameters:
args- the args- Returns:
- the error message
-
setErrorMessage
Set the error message- Parameters:
errorMessage-
-
getErrorLanguage
Get the error language- Returns:
- errorLanguage String
-
setErrorLanguage
Set the error language- Parameters:
errorLanguage-
-
getSolution
Get the list of error solutionEach element of list contains possible solution of the error
- Returns:
- solution List
-
setSolution
Set the list of error solution- Parameters:
solution-
-
toString
-