/** * Constructor that allows definition of the action. * * @param actionPerformed * Action being performed when exception occurred. * @param errorCode * Error code describing the exception. */ public BusinessException(String actionPerformed, IErrorCode errorCode) { super(generateMessage(actionPerformed, errorCode)); this.actionPerformed = actionPerformed; this.errorCode = errorCode; }