src/com/vehiclerental/presentationLayer/headOffice/BaseHeadOfficeController.java
/**
     * Generate an error response message with a given operation code, status code and message
     *
     * @param operationCode given operation code
     * @param status given status code
     * @param message given message
     * @return the generated error message
     */
Generate an error response message with a given operation code, status code and message
@param operationCode given operation code
@param status given status code
@param message given message
@return the generated error message
Generate an error response message with a given operation code status code and message @param operationCode given operation code @param status given status code @param message given message @return the generated error message
protected static HeadOfficeResponseMessage generateError(int operationCode, int status, String message) {
        HeadOfficeResponseMessage resp = new HeadOfficeResponseMessage();
        resp.OperationCode = operationCode;
        resp.Status = status;
        resp.Error = message;
        return resp;
    }
protected static HeadOfficeResponseMessage generateError ( int operationCode , int status , String message ) { HeadOfficeResponseMessage resp = new HeadOfficeResponseMessage ( ) ; resp . OperationCode = operationCode ; resp . Status = status ; resp . Error = message ; return resp ; }
Generate an error response message with a given operation code, status code and message
 @param operationCode given operation code
 @param status given status code
 @param message given message
 @return the generated error message
Generate an error response message with a given operation code status code and message @param operationCode given operation code @param status given status code @param message given message @return the generated error message