Class ErrorCodeInfo

java.lang.Object
com.priint.pubserver.errorcode.ErrorCodeInfo
All Implemented Interfaces:
Serializable

public class ErrorCodeInfo extends Object implements 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 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 identifier
      partnerName - the partner name
      contactPerson - the contact person
      contactPersonEmail - the contact person email
      moduleNo - the module no
      moduleName - the module name
      moduleDescription - the module description
      moduleConfigFile - the module config file
      errorNo - the error no
      errorMessage - the error message
      errorLanguage - the error language
      solution - 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

      public String getPartnerName()
      Get the name of the partner.
      Returns:
      partnerName String
    • setPartnerName

      public void setPartnerName(String partnerName)
      Set the name of the partner.

      Parameters:
      partnerName -
    • getModuleConfigFile

      public String getModuleConfigFile()
      Get the filename of the partner's configuration file.
      Returns:
      moduleConfigFile String
    • setModuleConfigFile

      public void setModuleConfigFile(String moduleConfigFile)
      Set the filename of the partner's configuration file.
      Parameters:
      moduleConfigFile -
    • getContactPerson

      public String getContactPerson()
      Get the contact person
      Returns:
      contactPerson String
    • setContactPerson

      public void setContactPerson(String contactPerson)
      Set the contact person
      Parameters:
      contactPerson -
    • getContactPersonEmail

      public String getContactPersonEmail()
      Get the contact person email
      Returns:
      contactPersonEmail String
    • setContactPersonEmail

      public void setContactPersonEmail(String contactPersonEmail)
      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

      public String getModuleName()
      Get the module name.
      Returns:
      moduleName String
    • setModuleName

      public void setModuleName(String moduleName)
      Set the module name.
      Parameters:
      moduleName -
    • getModuleDescription

      public String getModuleDescription()
      Get the module description.
      Returns:
      moduleDescription String
    • setModuleDescription

      public void setModuleDescription(String moduleDescription)
      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

      public String getErrorMessage()
      Get the error message
      Returns:
      errorMessage String
    • getErrorMessage

      public String getErrorMessage(Object... args)

      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

      public String getErrorMessage(String... args)
      Gets error message.
      Parameters:
      args - the args
      Returns:
      the error message
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Set the error message
      Parameters:
      errorMessage -
    • getErrorLanguage

      public String getErrorLanguage()
      Get the error language
      Returns:
      errorLanguage String
    • setErrorLanguage

      public void setErrorLanguage(String errorLanguage)
      Set the error language
      Parameters:
      errorLanguage -
    • getSolution

      public List<String> getSolution()
      Get the list of error solution

      Each element of list contains possible solution of the error

      Returns:
      solution List
    • setSolution

      public void setSolution(List<String> solution)
      Set the list of error solution
      Parameters:
      solution -
    • toString

      public String toString()
      Overrides:
      toString in class Object