/**
  * Instantiate an exception given an error code and a set of associated object parameters. The
  * params are required to render the message
  *
  * @param errorCode the error code
  * @param params the parameters used to render the message associated with the error code
  */
 public LookupHelperException(ErrorCode errorCode, Object[] params) {
   super(messages.getMessage(errorCode.toString(), params));
   this.errorCode = errorCode;
 }
 /**
  * Create an exception with the following error code and the root exception. The error code is
  * used to render a local specific message.
  *
  * @param errorCode the error code
  * @param cause the root exception
  */
 public LookupHelperException(ErrorCode errorCode, Throwable cause) {
   super(messages.getMessage(errorCode.toString()), cause);
   this.errorCode = errorCode;
 }
 /**
  * Instantiate an exception given an error code. The error code corresponds to a message that does
  * not require any parameters to redner
  *
  * @param errorCode the error code
  */
 public LookupHelperException(ErrorCode errorCode) {
   super(messages.getMessage(errorCode.toString()));
   this.errorCode = errorCode;
 }